Caffe2 - Python API
A deep learning, cross platform ML framework
List of all members
caffe2.python.regularizer_context.UseRegularizer Class Reference
Inheritance diagram for caffe2.python.regularizer_context.UseRegularizer:

Detailed Description

context class to allow setting the current context.
Example useage with layer:
    regularizers = {'reg1': reg1, 'reg2': reg2}
    with UseRegularizer(regularizers):
        reg = RegularizerContext.current().get_regularizer('reg1')

Definition at line 28 of file

The documentation for this class was generated from the following file: