Overview

The TensorHolder class is used to represent tensor operations in Eager Style graph construction.

  • The TensorHolder object cannot be created directly. It is created internally by the GraphBuilder operation.
  • TensorHolder cannot call the setter method after GraphBuilder.build_and_reset ().
  • All TensorHolder objects are automatically parsed and maintain a strong reference to their GraphBuilder to ensure that the underlying C++ resources remain valid while the TensorHolder object is still in use.