ut3_save#
- t3toolbox.backend.ut3_constructors.ut3_save(file, data)#
def ut3_save( file, # path or open file object to write the .npz to data: UT3Data, ) -> None:
Save a uniform Tucker tensor train (2 supercores + 2 rank masks + the shape ints) to a
.npz.Shares
save_core_families(): family 0 is the supercores, family 1 is the (numpy, host) rank masks, family 2 is the staticshapeas a 1-element int array.ut3_load()regroups them.np.savezstores the boolean masks with their dtype, sout3_loadrecovers numpy bool masks.- Parameters:
data (UT3Data)
- Return type:
None