Tensor#
- class ninetoothed.Tensor(ndim=None, shape=None, dtype=None, other=None, shape_options=None, constexpr=None, value=None, name=None, source=None, target_dims=None, _offsets=None, _outputs=None)#
A class uesed 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.
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#
Tiles the tensor into a hierarchical tensor. |
|
Expands the specified singleton dimensions of the tensor. |
|
Removes the specified singleton dimensions of the tensor. |
|
Permutes the dimensions of the tensor. |
|
Flattens the specified dimensions of the tensor. |
|
Flattens the hierarchy of the tensor. |
Evaluation#
Evaluate the symbolic tensor into a numeric tensor. |
|
Substitute symbols in the tensor. |