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

Method _new_writer

caffe2/python/dataio.py:284–289  ·  view source on GitHub ↗
(self, writer_schema, writer_init_net)

Source from the content-addressed store, hash-verified

282 return self._num_writers
283
284 def _new_writer(self, writer_schema, writer_init_net):
285 if writer_schema is not None and self._schema is None:
286 self._schema = writer_schema
287 self._num_writers += 1
288 if self._obj_key is not None:
289 writer_init_net.add_attribute(self._obj_key, self)
290
291 def _new_reader(self, reader_init_net):
292 self._num_readers += 1

Callers 1

write_exMethod · 0.80

Calls 1

add_attributeMethod · 0.80

Tested by

no test coverage detected