Tensor I/O
PyTaco can read and write tensors natively from three different file formats. The formats PyTaco supports are:
Rutherford-Boeing Format - .rb
FROSTT Format - .tns
For both the read and write functions, the file format is inferred from the file extension. This means that the extension must be given when specifying a file name.
|
Reads a tensor from a file. |
|
Writes a tensor to a file. |
|
Convert a NumPy array to a tensor. |
|
Convert a sparse scipy matrix to a CSC taco tensor. |
|
Convert a sparse scipy matrix to a CSR taco tensor. |
|
Converts a taco tensor to a NumPy array. |
|
Converts a taco tensor to a scipy csc_matrix. |
|
Converts a taco tensor to a scipy csr_matrix. |
|
Converts array_like or scipy csr and csr to tensors. |