bolar_1 date 2026-7-1 d:/proc
This commit is contained in:
8
components/esp-opus/dnn/torch/osce/utils/complexity.py
Normal file
8
components/esp-opus/dnn/torch/osce/utils/complexity.py
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
|
||||
def _conv1d_flop_count(layer, rate):
|
||||
return 2 * ((layer.in_channels + 1) * layer.out_channels * rate / layer.stride[0] ) * layer.kernel_size[0]
|
||||
|
||||
|
||||
def _dense_flop_count(layer, rate):
|
||||
return 2 * ((layer.in_features + 1) * layer.out_features * rate )
|
||||
Reference in New Issue
Block a user