Skip to content

Commit 2f2969f

Browse files
committed
replaced .set_label( by .relabel(
1 parent f939a28 commit 2f2969f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/backend/linalg_internal_gpu/cuTrace_internal.cu

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ namespace cytnx {
3232

3333
I_UT.relabel_({"0", "1"});
3434
UniTensor UTn = UniTensor(Tn, false, 2);
35-
UTn.relabel_(
36-
vec_cast<cytnx_uint64, cytnx_int64>(vec_range(100, 100 + UTn.labels().size())));
35+
UTn.relabel_(vec_cast<cytnx_uint64, cytnx_int64>(vec_range(100, 100 + UTn.labels().size())));
3736
UTn._impl->_labels[ax1] = "0";
3837
UTn._impl->_labels[ax2] = "1";
3938
out = Contract(I_UT, UTn).get_block_();

tests/DenseUniTensor_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,6 @@ TEST_F(DenseUniTensorTest, relabel_duplicated) {
650650
EXPECT_ANY_THROW(utzero345.relabel_(new_labels));
651651
}
652652

653-
654653
/*=====test info=====
655654
describe:test astype, input all possible dtype.
656655
====================*/

0 commit comments

Comments
 (0)