Skip to content

Commit

Permalink
[RUNTIME] Remove header dependency on private header (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
tqchen authored Oct 9, 2017
1 parent d78387e commit ddd78c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion docs/how_to/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ git submodule init
git submodule update --recursive
```

NNVM compiler depend on TVM and TOPI, so make sure you install them by following [TVM document](http://docs.tvmlang.org/)
NNVM compiler depend on TVM and TOPI, so make sure you install them by following [TVM document](http://docs.tvmlang.org/).
Note that it is necessary to build TVM with LLVM support to take full benefit of NNVM compiler.

## Contents
- [Build the Shared Library](#build-the-shared-library)
Expand Down
2 changes: 0 additions & 2 deletions src/compiler/graph_runtime.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ namespace compiler {
using tvm::runtime::TVMArgs;
using tvm::runtime::TVMRetValue;
using tvm::runtime::PackedFunc;
using tvm::runtime::kTVMNDArrayMagic;
using tvm::runtime::kTVMNDArrayListMagic;

DMLC_REGISTER_PARAMETER(TVMOpParam);

Expand Down
6 changes: 5 additions & 1 deletion src/compiler/graph_runtime.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@
#include <nnvm/graph.h>
#include <vector>
#include <string>
#include "../../tvm/src/runtime/graph/graph_runtime.h"

namespace nnvm {
namespace compiler {

/*! \brief Magic number for NDArray file */
constexpr uint64_t kTVMNDArrayMagic = 0xDD5E40F096B4A13F;
/*! \brief Magic number for NDArray list file */
constexpr uint64_t kTVMNDArrayListMagic = 0xF7E58D4F05049CB7;

struct TVMOpParam : public dmlc::Parameter<TVMOpParam> {
std::string func_name;
uint32_t num_inputs;
Expand Down

0 comments on commit ddd78c9

Please sign in to comment.