Hi all,
I am writing a C++ extension for an operation that I need to perform that will be far too slow with Python. Part of the algorithm involves constructing Matrices and Vectors from intermediate values(requiring their manual construction) that cannot be constructed ahead of time in Python.
I have been looking at the ATen Tensor 92 and Functions 33 API’s, however it seems that the objects and routines defined here are intended to be used with preexisting TensorImpl instances.
Does anybody know how one would construct a temporary Tensor of arbitrary(but small) shape(such as simple Matrices and Vectors) in a C++ extension? These Tensors are only required for intermediate computations and will not be returned by the C++ extension.
Best,
Jack