opus-codec 0.1.2

Safe Rust bindings for the Opus audio codec
Documentation
1
2
3
4
5
6
7
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 )