MCPcopy Create free account
hub / github.com/pytorch/pytorch / prod

Method prod

caffe2/python/operator_test/softmax_ops_test.py:102–106  ·  view source on GitHub ↗
(xs)

Source from the content-addressed store, hash-verified

100 X = X + 1e-2
101
102 def prod(xs):
103 p = 1
104 for x in xs:
105 p *= x
106 return p
107
108 N = prod(list(X.shape)[:axis])
109 D = prod(list(X.shape)[axis:])

Callers 15

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
create_dbFunction · 0.45
benchmark_concatFunction · 0.45
flatten_refMethod · 0.45
_layer_norm_refFunction · 0.45
_layer_norm_grad_refFunction · 0.45
test_packed_fc_axisMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected