Bihaqo / t3f

Tensor Train decomposition on TensorFlow
https://t3f.readthedocs.io/en/latest/index.html
MIT License
219 stars 55 forks source link

shape integer overflow #41

Closed Bihaqo closed 6 years ago

Bihaqo commented 7 years ago

lazy_shape overflows for large tensors and matrices ValueError: Dimension -2101438300051996672 must be >= 0

Bihaqo commented 7 years ago

Same problem in gram_matrix (need to finally make "is_matmul_applicable" or something like that!):

vectors_shape = tt_vectors.get_shape()
if vectors_shape[2] == 1 and vectors_shape[1] != 1:

and in str method.