bitorch.layers.extensions.layer_recipe.LayerRecipe¶
- class bitorch.layers.extensions.layer_recipe.LayerRecipe(layer: LayerContainer, args: Tuple[Any, ...], kwargs: Dict[str, Any])[source]¶
Data class to store a layer object and the arguments used to create it. It allows to create other implementations of the same layer later on.
Methods
Get an argument from the stored args or kwargs.
Get a positional argument from the stored args.
Attributes
layer
args
kwargs
- __init__(layer: LayerContainer, args: Tuple[Any, ...], kwargs: Dict[str, Any]) None ¶