@@ -59,7 +59,7 @@ to do so, make sure we set the environment correctly as in previous section and
59
59
make web
60
60
```
61
61
62
- This will create ``` lib /libtvm_web_runtime.bc``` and ``` lib /libtvm_web_runtime.js``` .
62
+ This will create ``` build /libtvm_web_runtime.bc``` and ``` build /libtvm_web_runtime.js``` .
63
63
64
64
## Use TVM to Generate Javascript Library
65
65
@@ -87,11 +87,11 @@ def prepare_test_libs(base_path):
87
87
88
88
if __name__ == " __main__" :
89
89
curr_path = os.path.dirname(os.path.abspath(os.path.expanduser(__file__ )))
90
- prepare_test_libs(os.path.join(curr_path, " ../../lib " ))
90
+ prepare_test_libs(os.path.join(curr_path, " ../../build " ))
91
91
```
92
92
93
93
In this workflow, we use TVM to generate a ``` .bc ``` file and statically link
94
- that with the ``` lib /libtvm_web_runtime.bc``` (emscripten.create_js will help you do that).
94
+ that with the ``` build /libtvm_web_runtime.bc``` (emscripten.create_js will help you do that).
95
95
The result js library is a library that contains both TVM runtime and the compiled function.
96
96
97
97
@@ -101,10 +101,10 @@ The following code snippet from [tests/web/test_module_load.js](https://github.c
101
101
how to run the compiled library.
102
102
103
103
``` js
104
- // Load Emscripten Module, need to change path to root/lib
104
+ // Load Emscripten Module, need to change path to root/build
105
105
const path = require (" path" );
106
- process .chdir (path .join (__dirname , " ../../lib " ));
107
- var Module = require (" ../../lib /test_module.js" );
106
+ process .chdir (path .join (__dirname , " ../../buld " ));
107
+ var Module = require (" ../../build /test_module.js" );
108
108
// Bootstrap TVMruntime with emscripten module.
109
109
const tvm_runtime = require (" ../../web/tvm_runtime.js" );
110
110
const tvm = tvm_runtime .create (Module);
0 commit comments