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

Function _AccumulatorShape

tensorflow/python/ops/gradients_util.py:856–861  ·  view source on GitHub ↗
(inputs)

Source from the content-addressed store, hash-verified

854
855
856def _AccumulatorShape(inputs):
857 shape = tensor_shape.unknown_shape()
858 for i in inputs:
859 if isinstance(i, ops.Tensor):
860 shape = shape.merge_with(i.get_shape())
861 return shape
862
863
864def _LogOpGradients(op, out_grads, in_grads):

Callers 1

_AggregatedGradsFunction · 0.85

Calls 3

unknown_shapeMethod · 0.80
merge_withMethod · 0.45
get_shapeMethod · 0.45

Tested by

no test coverage detected