TensorRef represents a reference to a tensor in the computation graph. It captures the essential metadata needed for graph construction and optimization.