Python class
Value
Value
Represents a symbolic value within a Graph.
A Value can represent the output of a node, the arguments of a Graph (as seen from within its body), and more generally any symbolic value available within the Graph. Other nodes receive Value values as inputs to form a computation graph.
A Value may also refer to an existing input or output of a node, and you can change them, such as by swapping a new Value.
Conceptually, think of a Value as an edge in the dataflow graph, with the other end being the user of that value.
Similar to a regular variable, a Value has a data type.
Note: All the methods in this type are documented as “Creates foo”. This is a shorthand notation for “Adds a node representing an op that returns foo”.
tensor
property tensor*: TensorValue*
Returns the the Value as a TensorValue.
Raise an exception if the Value is not a TensorValue.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?