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

Method setup_ex

caffe2/python/dataset.py:35–40  ·  view source on GitHub ↗
(self, init_net, exit_net)

Source from the content-addressed store, hash-verified

33 self.cursor = None
34
35 def setup_ex(self, init_net, exit_net):
36 if self.cursor is None:
37 self.cursor = init_net.CreateTreeCursor(
38 [],
39 init_net.NextScopedBlob(self.name),
40 fields=self.dataset.fields)
41
42 def read(self, read_net):
43 assert self.cursor, 'setup not called.'

Callers 3

readerMethod · 0.45
random_readerMethod · 0.45
writerMethod · 0.45

Calls 1

NextScopedBlobMethod · 0.80

Tested by

no test coverage detected