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

Method ret_value

python/tvm/rpc/tracker.py:256–260  ·  view source on GitHub ↗

return value to the output

(self, data)

Source from the content-addressed store, hash-verified

254 return
255
256 def ret_value(self, data):
257 """return value to the output"""
258 data = json.dumps(data)
259 self.write_message(struct.pack("<i", len(data)), binary=True)
260 self.write_message(data.encode("utf-8"), binary=True)
261
262 def call_handler(self, args):
263 """Event handler when json request arrives."""

Callers 2

call_handlerMethod · 0.95
_cbMethod · 0.95

Calls 3

write_messageMethod · 0.80
packMethod · 0.80
encodeMethod · 0.80

Tested by

no test coverage detected