context class to allow setting the current context. Example useage with layer: normalizers = {'norm1': norm1, 'norm2': norm2} with UseNormalizer(normalizers): norm = NormalizerContext.current().get_normalizer('norm1') layer(norm=norm)
Definition at line 28 of file normalizer_context.py.