Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_db
Function · 0.45
benchmark_concat
Function · 0.45
flatten_ref
Method · 0.45
_layer_norm_ref
Function · 0.45
_layer_norm_grad_ref
Function · 0.45
test_ngram_from_categorical_op
Method · 0.45
test_packed_fc_axis
Method · 0.45
test_sequence_mask_batching_lengths
Method · 0.45
test_sequence_mask_batching_window
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected