TTcross with fixed rank

Bug #1560160 reported by Daniele Bigoni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TensorToolbox - Python
Fix Released
High
Daniele Bigoni

Bug Description

Email from a user:
------------------------------

I think there is a bug in the latest 1.0.15 version.
It is triggered when you want to get TT format of a tensor, meanwhile you want to set the rank to a fixed value.
It happens in line “TensorTrainVec.py” line 1256 – 1257

self.TT = Gnew
self.init = True

These two lines should be within “INCREMENTAL=True” rather than be out of the “if-else” statement.
Otherwise, when “INCREMENTAL=FALSE”, you get

"local variable 'Gnew' referenced before assignment"

I fix this by adding one-indents to those two lines, and it works fine.

Related branches

Changed in tensortoolbox:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.