paddle.Tensor
A Tensor
is a generalization of vectors and matrices and is easily understood as a multidimensional array. For more information, you can see Introduction to Tensor.
Data types
PaddlePaddle defines the following Tensor types:
Data type |
dtype |
---|---|
32-bit floating point |
|
64-bit floating point |
|
16-bit floating point |
|
16-bit floating point |
|
64-bit complex |
|
128-bit complex |
|
8-bit integer (unsigned) |
|
8-bit integer (signed) |
|
16-bit integer (signed) |
|
32-bit integer (signed) |
|
64-bit integer (signed) |
|
Boolean |
|
Tensor class reference
Properties
|
The transpose of |
|
Tensor’s block. |
|
Tensor’s data type. |
|
The value of Tensor’s grad. |
|
The inplace version of current Tensor. |
|
Whether Tensor is leaf Tensor. |
|
The name of Tensor. |
|
The dimensions of Tensor. |
|
The value of Tensor’s persistable. |
|
The place of Tensor. |
|
The shape of Tensor. See paddle.shape . |
|
The size of Tensor. See paddle.numel . |
|
The value of Tensor’s stop_gradient. |
|
Tensor’s type. |
Methods
|
Simple class to read IFF chunks. |
|
NumPy |
|
program/module to trace Python program or function execution |