Tensor#
- class ninetoothed.Tensor(ndim=None, shape=None, dtype=None, jagged_dim=None, other=None, shape_options=None, constexpr=None, value=None, name=None, source=None, target_dims=None, _offsets=None, _outputs=None)#
A class used to represent a symbolic tensor.
- Parameters:
ndim – The number of dimensions of the tensor.
shape – The shape of the tensor.
dtype – The element type of the tensor.
jagged_dim – The jagged dimension of the tensor.
other – The values for out-of-bounds positions.
shape_options – The options for configuring shape symbols.
name – The name of the tensor.
source – For internal use only.
target_dims – For internal use only.
Meta-Operations#
Tile the tensor into a hierarchical tensor. |
|
Expand the specified singleton dimensions of the tensor. |
|
Insert a singleton dimension in the tensor. |
|
Remove the specified singleton dimensions of the tensor. |
|
Permute the dimensions of the tensor. |
|
Flatten the specified dimensions of the tensor. |
|
Flatten the hierarchy of the tensor. |
|
Pad the tensor with the specified padding. |
Evaluation#
Evaluate the symbolic tensor into a numeric tensor. |
|
Substitute symbols in the tensor. |