Tools¶
FrozenClass¶
MetricHandler¶
ModelForwardWrapper¶
- class catalyst.tools.forward_wrapper.ModelForwardWrapper(model, method_name)[source]¶
Bases:
torch.nn.modules.module.Module
Model that calls specified method instead of forward.
- Parameters
model – @TODO: docs
method_name – @TODO: docs
(Workaround, single method tracing is not supported)
- forward(*args, **kwargs)[source]¶
Forward pass.
- Parameters
*args – some args
**kwargs – some kwargs
- Returns
specified method output
- Return type
output
- training: bool¶