3. Tensor¶
Tensor is the basic building block of Cytnx. In fact, the API of Tensor in Cytnx is very similar to torch.tensor (and to numpy.array, since they are also similar to each other).
Let’s take a look on how to use it:
Tensor is the basic building block of Cytnx. In fact, the API of Tensor in Cytnx is very similar to torch.tensor (and to numpy.array, since they are also similar to each other).
Let’s take a look on how to use it: