megengine.traced_module.node.TensorNode

class TensorNode(expr, name, orig_name)[源代码]

TensorNode represents the Tensor objects.

Attributes

device

Get the device of this Node pointed Tensor.

dtype

Get the dtype of this Node.

expr

The Expr which produces the Node.

name

Return the name of this Node.

qparams

Get the :calss:`QParams` of this Node.

shape

Get the shape of this Node.

top_graph

Get the parent graph of this Node.

value

Get the bound Tensor of this Node.

Methods