A Tensor
is the fondamental data type in torch, (similar to numpy for tensorflow), it's a potentially multi-dimensional matrix.
See doc: https://github.com/torch/torch7/blob/master/doc/tensor.md
basic ops
-
Indicate shape in constructor:
th> x = torch.Tensor(3,4) [0.0000s] th> x 3.7366e ...