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

Function _product

tensorflow/python/ops/gradient_checker.py:38–45  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

36
37
38def _product(t):
39 if isinstance(t, int):
40 return t
41 else:
42 y = 1
43 for x in t:
44 y *= x
45 return y
46
47
48def _extra_feeds(extra_feed_dict, new_feeds):

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected