MCPcopy Index your code
hub / github.com/apache/tvm / check_remote

Function check_remote

tests/python/contrib/test_coreml_runtime.py:85–94  ·  view source on GitHub ↗
(coreml_model)

Source from the content-addressed store, hash-verified

83 np.testing.assert_almost_equal(c_out, t_out, 3)
84
85 def check_remote(coreml_model):
86 temp = utils.tempdir()
87 compiled_model = xcode.compile_coreml(coreml_model, out_dir=temp.temp_dir)
88 xcode.popen_test_rpc(
89 proxy_host, proxy_port, key, destination=destination, libs=[compiled_model]
90 )
91 compiled_model = os.path.basename(compiled_model)
92 remote = rpc.connect(proxy_host, proxy_port, key=key)
93 dev = remote.cpu(0)
94 verify(coreml_model, compiled_model, dev)
95
96 def check_local(coreml_model):
97 temp = utils.tempdir()

Callers 1

test_coreml_runtimeFunction · 0.70

Calls 3

verifyFunction · 0.70
connectMethod · 0.45
cpuMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…