def _bind_future_as_tensor_v1(future: nodes.ValueNode,
                              tensor_info: TensorInfo,
                              name: Optional[str] = None) -> tf.Tensor:
  """Bind a future value as a tensor to a TF1 graph."""
  result = tf.compat.v1.placeholder(tensor_info.dtype, tensor_info.shape, name)
  is_asset_filepath = tensor_info.temporary_asset_info is not None
  tf.compat.v1.add_to_collection(TENSOR_REPLACEMENTS,
                                 TensorSink(result, future, is_asset_filepath))
  return result
Bind a future value as a tensor to a TF1 graph.
tensorflow_transform/analyzer_nodes.py