bitorch.layers.qconv_mixin.QConvArgsProviderMixin

class bitorch.layers.qconv_mixin.QConvArgsProviderMixin(*args: Any, **kwargs: Any)[source]

Methods

__init__

get_args_as_kwargs

Gather all arguments that were used to create a QLinear layer with argument names.

__init__(*args: Any, **kwargs: Any) None[source]
static get_args_as_kwargs(recipe: LayerRecipe) Dict[str, Any][source]

Gather all arguments that were used to create a QLinear layer with argument names. Can be used to recreate a layer with identical arguments.

Returns:

A dictionary with all arguments (key is the argument name as a string even for positional arguments)