Skip to content

Commit 4c38363

Browse files
authored
fix in ortho_left and ortho_right
1 parent 7a8bc2d commit 4c38363

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scikit_tt/tensor_train.py

+4
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,8 @@ def ortho_left(self, start_index: int=0,
11511151
max_rank_tf = False
11521152
if max_rank_tf:
11531153
max_ranks = max_rank
1154+
else:
1155+
max_rank_tf = False
11541156

11551157
if max_rank_tf:
11561158

@@ -1255,6 +1257,8 @@ def ortho_right(self, start_index: Optional[int]=None,
12551257
max_rank_tf = False
12561258
if max_rank_tf:
12571259
max_ranks = max_rank
1260+
else:
1261+
max_rank_tf = False
12581262

12591263
if max_rank_tf:
12601264

0 commit comments

Comments
 (0)