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:
Yangqing Jia
2017-10-10 22:06:54 -07:00
committed by Facebook Github Bot
parent e13f199452
commit b1508e8e86
18 changed files with 102 additions and 301 deletions

View File

@ -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]