Tuesday, 5 November 2019

Relation Between Operation and Tensor in TensorFlow 2

tf.Operation:

  • Properties:
    • outputs: A list of tensors
tf.Tensor:
  • Properties:
    • op: The tf.Operation connected to this tensor.
      Exists in op-tensor only (ie. a tensor in graph)
    • op.outputs: A list in which this tensor is also an entry.
    • value_index: Index of this tensor in the op.outputs list.
  • Methods:
    • numpy(): The numeric values in this tensor.
      Exists in value-tensor (eager tensor) only (ie. a tensor in TF2 default mode).

No comments:

Post a Comment