Skip to content

Commit

Permalink
[DOCS] Improve document in reflection (apache#5593)
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfu authored and Trevor Morris committed Jun 18, 2020
1 parent f6c2804 commit 12d427b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/cpp_rpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This folder contains a simple recipe to make RPC server in c++.
- 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.
Expand All @@ -59,4 +59,4 @@ Command line usage
```

## Note
Currently support is only there for Linux / Android / Windows environment and proxy mode doesn't be supported currently.
Currently support is only there for Linux / Android / Windows environment and proxy mode doesn't be supported currently.
2 changes: 1 addition & 1 deletion apps/extension/python/tvm_ext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __getitem__(self, idx):
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.
"""

Expand Down
6 changes: 5 additions & 1 deletion include/tvm/node/reflection.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ class ReflectionVTable::Registry {
* // 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,
Expand Down

0 comments on commit 12d427b

Please sign in to comment.