Skip to main content
Log in

Python class

TensorValue

TensorValue

class max.graph.TensorValue(value: Value | Value | ndarray)

Represents a value semantic tensor within a Graph.

T

property T*: TensorValue*

dtype

property dtype*: DType*

from_dim()

static from_dim(dim: int | str | Dim | integer) → TensorValue

from_shape()

static from_shape(shape: Iterable[int | str | Dim | integer]) → TensorValue

print()

print(label: str = 'debug_tensor')

rank

property rank*: int*

rebind()

rebind(shape: Iterable[int | str | Dim | integer]) → TensorValue

reshape()

reshape(shape: Iterable[int | str | Dim | integer]) → TensorValue

shape

property shape*: Shape*

Returns the shape of the TensorValue.

transpose()

transpose(dim_1: int, dim_2: int) → TensorValue

type

property type*: TensorType*

Returns the type of the TensorValue as a TensorType.

Was this page helpful?