tensor#

NyxImportedBuffer.tensor(shape, dtype=torch.float32)[source]#

Return a torch tensor of the given shape and dtype aliasing the start of the buffer, zero copy.

Return type:

Tensor