concrete.ml.sklearn.qnn_module.md
module concrete.ml.sklearn.qnn_module
concrete.ml.sklearn.qnn_moduleclass SparseQuantNeuralNetwork
SparseQuantNeuralNetworkmethod __init__
__init____init__(
input_dim: int,
n_layers: int,
n_outputs: int,
n_hidden_neurons_multiplier: int = 4,
n_w_bits: int = 4,
n_a_bits: int = 4,
n_accum_bits: int = 32,
n_prune_neurons_percentage: float = 0.0,
activation_function: Type = <class 'torch.nn.modules.activation.ReLU'>,
quant_narrow: bool = False,
quant_signed: bool = True,
power_of_two_scaling: bool = True
)method enable_pruning
enable_pruningmethod forward
forwardmethod make_pruning_permanent
make_pruning_permanentmethod max_active_neurons
max_active_neuronsLast updated
Was this helpful?