You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@teaclave.apache.org by GitBox <gi...@apache.org> on 2021/08/04 23:01:57 UTC

[GitHub] [incubator-teaclave] ya0guang opened a new pull request #537: add TVM example document

ya0guang opened a new pull request #537:
URL: https://github.com/apache/incubator-teaclave/pull/537


   ## Description
   
   add TVM example document
   Fixes # (issue)
   
   ## Type of change (select or add applied and delete the others)
   
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] New feature (non-breaking change which adds functionality)
   - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
   - [ ] API change with a documentation update
   - [ ] Additional test coverage
   - [ ] Code cleanup or just sync with upstream third-party crates
   
   ## How has this been tested?
   
   ## Checklist
   
   - [ ] Fork the repo and create your branch from `master`.
   - [ ] If you've added code that should be tested, add tests.
   - [ ] If you've changed APIs, update the documentation.
   - [ ] Ensure the tests pass (see CI results).
   - [ ] Make sure your code lints/format.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun commented on a change in pull request #537: add TVM example document

Posted by GitBox <gi...@apache.org>.
mssun commented on a change in pull request #537:
URL: https://github.com/apache/incubator-teaclave/pull/537#discussion_r683102995



##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.
+Thanks to [TVM](https://tvm.apache.org/) and [WebAssembly
+Executor](https://teaclave.apache.org/docs/executing-wasm/), Teaclave is now
+able to run the former—inference tasks. TVM can convert a model (or computation
+graph) to an intermediate representation (IR) defined by TVM, and compile the
+binary of this model from the IR. Since TVM recruits LLVM to emit binary code
+and LLVM support WebAssembly as backend, Teaclave's WebAssembly Executor can
+then execute the model's binary with additional lightweight runtime provided by
+TVM. 
+
+Although TVM has already provided an [wasm-standalone example
+app](https://github.com/apache/tvm/tree/main/apps/wasm-standalone), we still
+cannot copy and run it in Teaclave due to lack of WASI support and specific
+context file interface. This document mainly focuses on the *what's different*
+in Teaclave and we will finally build a MNIST inference function for Teaclave.

Review comment:
       I don't think this paragraph is useful. Note that this is the long-lasting document but not a blog.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun merged pull request #537: add TVM example document

Posted by GitBox <gi...@apache.org>.
mssun merged pull request #537:
URL: https://github.com/apache/incubator-teaclave/pull/537


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun commented on a change in pull request #537: add TVM example document

Posted by GitBox <gi...@apache.org>.
mssun commented on a change in pull request #537:
URL: https://github.com/apache/incubator-teaclave/pull/537#discussion_r683102392



##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.

Review comment:
       Can you add some scenarios of using ML in confidential computing?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun commented on a change in pull request #537: add TVM example document

Posted by GitBox <gi...@apache.org>.
mssun commented on a change in pull request #537:
URL: https://github.com/apache/incubator-teaclave/pull/537#discussion_r685565608



##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.
+Thanks to [TVM](https://tvm.apache.org/) and [WebAssembly
+Executor](https://teaclave.apache.org/docs/executing-wasm/), Teaclave is now
+able to run the former—inference tasks. TVM can convert a model (or computation
+graph) to an intermediate representation (IR) defined by TVM, and compile the
+binary of this model from the IR. Since TVM recruits LLVM to emit binary code
+and LLVM support WebAssembly as backend, Teaclave's WebAssembly Executor can
+then execute the model's binary with additional lightweight runtime provided by
+TVM. 
+
+Although TVM has already provided an [wasm-standalone example
+app](https://github.com/apache/tvm/tree/main/apps/wasm-standalone), we still
+cannot copy and run it in Teaclave due to lack of WASI support and specific
+context file interface. This document mainly focuses on the *what's different*
+in Teaclave and we will finally build a MNIST inference function for Teaclave.

Review comment:
       We can still keep it.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun commented on a change in pull request #537: add TVM example document

Posted by GitBox <gi...@apache.org>.
mssun commented on a change in pull request #537:
URL: https://github.com/apache/incubator-teaclave/pull/537#discussion_r683102392



##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.

Review comment:
       Can you add some scenarios of using ML in confidential computing?

##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.
+Thanks to [TVM](https://tvm.apache.org/) and [WebAssembly
+Executor](https://teaclave.apache.org/docs/executing-wasm/), Teaclave is now
+able to run the former—inference tasks. TVM can convert a model (or computation

Review comment:
       ~former~

##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.
+Thanks to [TVM](https://tvm.apache.org/) and [WebAssembly
+Executor](https://teaclave.apache.org/docs/executing-wasm/), Teaclave is now
+able to run the former—inference tasks. TVM can convert a model (or computation
+graph) to an intermediate representation (IR) defined by TVM, and compile the
+binary of this model from the IR. Since TVM recruits LLVM to emit binary code
+and LLVM support WebAssembly as backend, Teaclave's WebAssembly Executor can
+then execute the model's binary with additional lightweight runtime provided by
+TVM. 
+
+Although TVM has already provided an [wasm-standalone example
+app](https://github.com/apache/tvm/tree/main/apps/wasm-standalone), we still
+cannot copy and run it in Teaclave due to lack of WASI support and specific
+context file interface. This document mainly focuses on the *what's different*
+in Teaclave and we will finally build a MNIST inference function for Teaclave.

Review comment:
       I don't think this paragraph is useful. Note that this is the long-lasting document but not a blog.

##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.
+Thanks to [TVM](https://tvm.apache.org/) and [WebAssembly
+Executor](https://teaclave.apache.org/docs/executing-wasm/), Teaclave is now
+able to run the former—inference tasks. TVM can convert a model (or computation
+graph) to an intermediate representation (IR) defined by TVM, and compile the
+binary of this model from the IR. Since TVM recruits LLVM to emit binary code
+and LLVM support WebAssembly as backend, Teaclave's WebAssembly Executor can
+then execute the model's binary with additional lightweight runtime provided by
+TVM. 
+
+Although TVM has already provided an [wasm-standalone example
+app](https://github.com/apache/tvm/tree/main/apps/wasm-standalone), we still
+cannot copy and run it in Teaclave due to lack of WASI support and specific
+context file interface. This document mainly focuses on the *what's different*
+in Teaclave and we will finally build a MNIST inference function for Teaclave.

Review comment:
       I don't think this paragraph is useful. Note that this is a long-lasting document but not a blog.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun commented on a change in pull request #537: add TVM example document

Posted by GitBox <gi...@apache.org>.
mssun commented on a change in pull request #537:
URL: https://github.com/apache/incubator-teaclave/pull/537#discussion_r683102503



##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.
+Thanks to [TVM](https://tvm.apache.org/) and [WebAssembly
+Executor](https://teaclave.apache.org/docs/executing-wasm/), Teaclave is now
+able to run the former—inference tasks. TVM can convert a model (or computation

Review comment:
       ~former~




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org


[GitHub] [incubator-teaclave] mssun commented on a change in pull request #537: add TVM example document

Posted by GitBox <gi...@apache.org>.
mssun commented on a change in pull request #537:
URL: https://github.com/apache/incubator-teaclave/pull/537#discussion_r683102995



##########
File path: docs/inference-with-tvm.md
##########
@@ -0,0 +1,101 @@
+---
+permalink: /docs/inference-with-tvm
+---
+
+# Inference Task with TVM in Teaclave
+
+Inference and model training are two important topics in machine learning.
+Thanks to [TVM](https://tvm.apache.org/) and [WebAssembly
+Executor](https://teaclave.apache.org/docs/executing-wasm/), Teaclave is now
+able to run the former—inference tasks. TVM can convert a model (or computation
+graph) to an intermediate representation (IR) defined by TVM, and compile the
+binary of this model from the IR. Since TVM recruits LLVM to emit binary code
+and LLVM support WebAssembly as backend, Teaclave's WebAssembly Executor can
+then execute the model's binary with additional lightweight runtime provided by
+TVM. 
+
+Although TVM has already provided an [wasm-standalone example
+app](https://github.com/apache/tvm/tree/main/apps/wasm-standalone), we still
+cannot copy and run it in Teaclave due to lack of WASI support and specific
+context file interface. This document mainly focuses on the *what's different*
+in Teaclave and we will finally build a MNIST inference function for Teaclave.

Review comment:
       I don't think this paragraph is useful. Note that this is a long-lasting document but not a blog.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@teaclave.apache.org
For additional commands, e-mail: notifications-help@teaclave.apache.org