Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
torch.utils.hooks.RemovableHandle Class Reference
Inheritance diagram for torch.utils.hooks.RemovableHandle:

Public Member Functions

def __init__ (self, hooks_dict)
 
def remove (self)
 
def __getstate__ (self)
 
def __setstate__ (self, state)
 
def __enter__ (self)
 
def __exit__ (self, type, value, tb)
 

Public Attributes

 hooks_dict_ref
 
 id
 

Static Public Attributes

 next_id
 

Detailed Description

A handle which provides the capability to remove a hook.

Definition at line 7 of file hooks.py.


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