mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-06 09:17:11 +08:00
Revert D5905002: [caffe2] expose observers to python
Summary: This reverts commit e40ec24a55e08fb73beea9b4f3b68e71fc66ffb1 bypass-lint Differential Revision: D5905002 fbshipit-source-id: 4f1b79d9a318978f6b74565f633f34b9701a9d5c
This commit is contained in:
committed by
Facebook Github Bot
parent
e13f199452
commit
b1508e8e86
@ -1875,13 +1875,6 @@ class Net(object):
|
||||
* [ScopedBlobReference(b) for b in outputs]
|
||||
)
|
||||
|
||||
def AddObserver(self, observer):
|
||||
return C.add_observer_to_net(self._net.name, observer)
|
||||
|
||||
# This will return any observer added to the net.
|
||||
def GetObserver(self, index):
|
||||
return C.get_observer_from_net(self._net.name, index)
|
||||
|
||||
@property
|
||||
def external_inputs(self):
|
||||
return [_get_blob_ref(x) for x in self._net.external_input]
|
||||
|
||||
Reference in New Issue
Block a user