MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / send

Method send

python/oneflow/multiprocessing/queue.py:29–32  ·  view source on GitHub ↗
(self, obj)

Source from the content-addressed store, hash-verified

27 self.conn = conn
28
29 def send(self, obj):
30 buf = io.BytesIO()
31 ForkingPickler(buf, pickle.HIGHEST_PROTOCOL).dump(obj)
32 self.send_bytes(buf.getvalue())
33
34 def recv(self):
35 buf = self.recv_bytes()

Callers 7

castFunction · 0.80
callFunction · 0.80
sendFunction · 0.80
_test_send_recvMethod · 0.80
scatterFunction · 0.80
handle_callFunction · 0.80

Calls

no outgoing calls

Tested by 4

castFunction · 0.64
callFunction · 0.64
_test_send_recvMethod · 0.64