MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / EvaluateAsTuple

Function EvaluateAsTuple

tensorflow/python/ops/math_grad.py:179–183  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

177
178 # Compute and cache `output_shape_kept_dims` and `tile_scaling`.
179 def EvaluateAsTuple(t):
180 value = c_api.TF_TryEvaluateConstant_wrapper(
181 t.graph._c_graph, t._as_tf_output()) # pylint: disable=protected-access
182 assert value is not None
183 return tuple(value)
184
185 output_shape_kept_dims = EvaluateAsTuple(
186 math_ops.reduced_shape(input_0_shape, axes))

Callers 1

_SumGradFunction · 0.85

Calls 2

tupleFunction · 0.85
_as_tf_outputMethod · 0.45

Tested by

no test coverage detected