MCPcopy Index your code
hub / github.com/pytorch/pytorch / _new_reader

Method _new_reader

caffe2/python/dataio.py:291–294  ·  view source on GitHub ↗
(self, reader_init_net)

Source from the content-addressed store, hash-verified

289 writer_init_net.add_attribute(self._obj_key, self)
290
291 def _new_reader(self, reader_init_net):
292 self._num_readers += 1
293 if self._obj_key is not None:
294 reader_init_net.add_attribute(self._obj_key, self)
295
296
297class CounterReader(Reader):

Callers 1

read_exMethod · 0.80

Calls 1

add_attributeMethod · 0.80

Tested by

no test coverage detected