MCPcopy Create free account
hub / github.com/apache/tvm / _respond

Function _respond

python/tvm/exec/popen_worker.py:76–81  ·  view source on GitHub ↗

Send data back to the client.

(ret_value)

Source from the content-addressed store, hash-verified

74 lock = threading.Lock()
75
76 def _respond(ret_value):
77 """Send data back to the client."""
78 data = cloudpickle.dumps(ret_value, protocol=pickle.HIGHEST_PROTOCOL)
79 writer.write(struct.pack("<i", len(data)))
80 writer.write(data)
81 writer.flush()
82
83 def _cancel_run(status):
84 lock.acquire()

Callers 2

_cancel_runFunction · 0.85
mainFunction · 0.85

Calls 3

packMethod · 0.80
flushMethod · 0.80
writeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…