(m: nn.Module)
return res
Return list of trainable params in `m`.
Return list of trainable params in `m`.
Return list of trainable params in m .
def trainable_params(m: nn.Module):
    "Return list of trainable params in `m`."
    res = filter(lambda p: p.requires_grad, m.parameters())
    return res
def trainable_params ( m : nn . Module ) : res = filter ( lambda p : p . requires_grad , m . parameters ( ) ) return res