8e8b81aac14d39288b4c8bbbda86f2cb6a4bb319,tensorflow_transform/tf_utils.py,,deref_tensor_or_op,#Any#,233
Before Change
if isinstance(tensor_or_op, _RaggedTensorRef):
// Setting validate=False here because validating entails adding many asserts
// to the graph every time it"s called.
return tf.RaggedTensor.from_row_splits(
values=deref_tensor_or_op(tensor_or_op.values),
row_splits=deref_tensor_or_op(tensor_or_op.row_splits),
validate=False)
return tensor_or_op
def _broadcast_to_x_shape(x, y):
After Change
if isinstance(tensor_or_op, object_identity.Reference):
return tensor_or_op.deref()
if isinstance(tensor_or_op, _CompositeTensorRef):
return tf.nest.pack_sequence_as(
structure=tensor_or_op.type_spec,
flat_sequence=[
deref_tensor_or_op(component)
for component in tensor_or_op.list_of_refs
],
expand_composites=True)
return tensor_or_op
def _broadcast_to_x_shape(x, y):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tensorflow/transform
Commit Name: 8e8b81aac14d39288b4c8bbbda86f2cb6a4bb319
Time: 2020-06-23
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/tf_utils.py
Class Name:
Method Name: deref_tensor_or_op
Project Name: tensorflow/agents
Commit Name: 804cf56a5f0e70d39f6447cd2e0be52fbfec6a8c
Time: 2019-09-23
Author: oars@google.com
File Name: tf_agents/utils/tensor_normalizer.py
Class Name: StreamingTensorNormalizer
Method Name: variables
Project Name: tensorflow/agents
Commit Name: 804cf56a5f0e70d39f6447cd2e0be52fbfec6a8c
Time: 2019-09-23
Author: oars@google.com
File Name: tf_agents/utils/tensor_normalizer.py
Class Name: EMATensorNormalizer
Method Name: variables