An AnvilBox subclass that wraps a GraphNode during graph construction (tracing).
When a function is traced via trace_fn(), each intermediate tensor
value is represented as a GraphBox.
It also contains an associated GraphDescriptor in which the node "lives".
Arguments
- gnode
(
GraphNode)
The graph node – either aGraphValueor aGraphLiteral.- desc
(
GraphDescriptor)
The descriptor of the graph being built.