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

Function _total_size

tensorflow/python/ops/special_math_ops.py:557–566  ·  view source on GitHub ↗

Given list of tensor shape values, returns total size. If shape_values contains tensor values (which are results of array_ops.shape), then it returns a scalar tensor. If not, it returns an integer.

(shape_values)

Source from the content-addressed store, hash-verified

555
556
557def _total_size(shape_values):
558 """Given list of tensor shape values, returns total size.
559 If shape_values contains tensor values (which are results of
560 array_ops.shape), then it returns a scalar tensor.
561 If not, it returns an integer."""
562
563 result = 1
564 for val in shape_values:
565 result *= val
566 return result
567
568
569def _exponential_space_einsum(equation, *inputs):

Callers 1

_einsum_reductionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected