MCPcopy 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
20def prod(s):
21 p = 1
22 for v in s:
23 p *= v
24 return p
25
26
27def flops(op_type: str, input_shapes: dict, attrs: dict) -> int:

Callers 9

_conv2d_flopsFunction · 0.70
_gelu_flopsFunction · 0.70
_layer_norm_flopsFunction · 0.70
_matmul_flopsFunction · 0.70
_matmul_v2_flopsFunction · 0.70
_relu_class_flopsFunction · 0.70
_softmax_flopsFunction · 0.70
_pool_flopsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected