The tf.Tensor(op, value_index, dtype) constructor allows creating a tensor handle from an existing operation output. To support shape inference for such tensors, we need to:
- Identify the operation (or generator) that the
op argument corresponds to.
- Delegate the shape computation to that generator, using the
value_index to select the correct output.
This requires the ability to trace the op argument back to its creating logic (e.g., a tf.matmul call) and instantiate the appropriate TensorGenerator.
This task is blocked by #340, which addresses the general mechanism for operations involving calls to other tensor generators.
The
tf.Tensor(op, value_index, dtype)constructor allows creating a tensor handle from an existing operation output. To support shape inference for such tensors, we need to:opargument corresponds to.value_indexto select the correct output.This requires the ability to trace the
opargument back to its creating logic (e.g., atf.matmulcall) and instantiate the appropriateTensorGenerator.This task is blocked by #340, which addresses the general mechanism for operations involving calls to other tensor generators.