- Build tvm with the argument -DUSE_CPP_RPC
- Install [LLVM pre-build binaries](https://releases.llvm.org/download.html), making sure to select the option to add it to the PATH.
- Verify Python 3.6 or newer is installed and in the PATH.
-- Use `<tmv_output_dir>\tvm_rpc.exe` to start the RPC server
+- Use `<tvm_output_dir>\tvm_rpc.exe` to start the RPC server
## How it works
- The tvm runtime dll is linked along with this executable and when the RPC server starts it will load the tvm runtime library.
```
## Note
-Currently support is only there for Linux / Android / Windows environment and proxy mode doesn't be supported currently.
\ No newline at end of file
+Currently support is only there for Linux / Android / Windows environment and proxy mode doesn't be supported currently.
class NDSubClass(tvm.nd.NDArrayBase):
"""Example for subclassing TVM's NDArray infrastructure.
- By inheriting TMV's NDArray, external libraries could
+ By inheriting TVM's NDArray, external libraries could
leverage TVM's FFI without any modification.
"""
* // Example SEQualReduce traits for runtime StringObj.
*
* struct StringObjTrait {
- * static constexpr const std::nullptr_t VisitAttrs = nullptr;
+ * static constexpr const std::nullptr_t VisitAttrs = nullptr;
+ *
+ * static void SHashReduce(const runtime::StringObj* key, SHashReducer hash_reduce) {
+ * hash_reduce->SHashReduceHashedValue(runtime::String::HashBytes(key->data, key->size));
+ * }
*
* static bool SEqualReduce(const runtime::StringObj* lhs,
* const runtime::StringObj* rhs,