MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / put

Method put

examples/mlperf/dataloader.py:23–26  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

21 if self._rlock: self._rlock.release()
22 return ret
23 def put(self, obj):
24 if self._wlock: self._wlock.acquire()
25 self._writer.send_bytes(pickle.dumps(obj))
26 if self._wlock: self._wlock.release()
27
28def shuffled_indices(n, seed=None):
29 rng = random.Random(seed)

Callers 14

connectionMethod · 0.80
push_taskMethod · 0.80
_submitMethod · 0.80
remote_getFunction · 0.80
listenerFunction · 0.80
loader_processFunction · 0.80
enqueue_batchFunction · 0.80
batch_load_resnetFunction · 0.80
load_unet3d_dataFunction · 0.80
batch_load_unet3dFunction · 0.80
load_retinanet_dataFunction · 0.80
_enqueue_batchFunction · 0.80

Calls 1

releaseMethod · 0.80

Tested by 1

remote_getFunction · 0.64