MCPcopy Create free account
hub / github.com/pytorch/pytorch / AddObserver

Method AddObserver

caffe2/python/core.py:2102–2103  ·  view source on GitHub ↗
(self, observer_type)

Source from the content-addressed store, hash-verified

2100
2101 # This returns a reference to the observer
2102 def AddObserver(self, observer_type):
2103 return C.add_observer_to_net(self._net.name, observer_type)
2104
2105 def RemoveObserver(self, observer):
2106 C.remove_observer_from_net(self._net.name, observer)

Callers 2

testObserverMethod · 0.80

Calls

no outgoing calls

Tested by 2

testObserverMethod · 0.64