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

Method computeoffset

caffe2/python/dataset.py:81–86  ·  view source on GitHub ↗
(self, net)

Source from the content-addressed store, hash-verified

79 net.ResetCursor([self.cursor], [])
80
81 def computeoffset(self, net):
82 self.reset(net)
83 offsets = net.ComputeOffset(
84 [self.cursor] + self.dataset.content().field_blobs(),
85 'offsets')
86 self.offsets = offsets
87
88 def sort_and_shuffle(self, net, sort_by_field=None,
89 shuffle_size=1, batch_size=1):

Callers 2

setup_exMethod · 0.80
test_dataset_opsMethod · 0.80

Calls 3

resetMethod · 0.95
contentMethod · 0.80
field_blobsMethod · 0.45

Tested by 1

test_dataset_opsMethod · 0.64