()
| 118 | |
| 119 | @pytest.mark.skipif(not env.has_rpc(), reason="need rpc") |
| 120 | def test_rpc_runtime_string(): |
| 121 | server = rpc.Server(key="x1") |
| 122 | client = rpc.connect("127.0.0.1", server.port, key="x1") |
| 123 | |
| 124 | def check_remote(): |
| 125 | func = client.get_function("rpc.test.runtime_str_concat") |
| 126 | x = tvm_ffi.core.String("abc") |
| 127 | y = tvm_ffi.core.String("def") |
| 128 | assert str(func(x, y)) == "abcdef" |
| 129 | |
| 130 | check_remote() |
| 131 | |
| 132 | |
| 133 | @pytest.mark.skipif(not env.has_rpc(), reason="need rpc") |
nothing calls this directly
no test coverage detected
searching dependent graphs…