Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PaddlePaddle/Paddle
/ prod
Function
prod
python/paddle/utils/flops.py:20–24 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
18
19
20
def
prod(s):
21
p = 1
22
for
v in s:
23
p *= v
24
return
p
25
26
27
def
flops(op_type: str, input_shapes: dict, attrs: dict) -> int:
Callers
9
_conv2d_flops
Function · 0.70
_elementwise_flops_compute
Function · 0.70
_gelu_flops
Function · 0.70
_layer_norm_flops
Function · 0.70
_matmul_flops
Function · 0.70
_matmul_v2_flops
Function · 0.70
_relu_class_flops
Function · 0.70
_softmax_flops
Function · 0.70
_pool_flops
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected