Tensor¶
- class tract.tensor.Tensor(ptr)[source]¶
A multidimensional array of typed data, the fundamental data carrier in tract.
Tensors flow in and out of models: they are the inputs you feed to
Runnable.run()and the outputs you get back. On the Python side, convert to and from numpy arrays withto_numpy()andfrom_numpy().