Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
caffe2.python.modifier_context.UseModifierBase Class Reference
Inheritance diagram for caffe2.python.modifier_context.UseModifierBase:

Public Member Functions

def __init__ (self, modifier_or_dict)
def __enter__ (self)
def __exit__ (self, type, value, traceback)

Detailed Description

context class to allow setting the current context.
Example useage with layer:
    modifiers = {'modifier1': modifier1, 'modifier2': modifier2}
    with Modifiers(modifiers):
        modifier = ModifierContext.current().get_modifier('modifier1')

Definition at line 43 of file

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