[GitHub] [incubator-tvm] u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate external library wrappers for DSOModule

2019-11-22 Thread GitBox
u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate 
external library wrappers for DSOModule
URL: https://github.com/apache/incubator-tvm/pull/4280#issuecomment-557635801
 
 
   LGTM - I don't see an actual "Approve" button if clicking that's expected 
from a workflow perspective.
   
   Ramana


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [incubator-tvm] u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate external library wrappers for DSOModule

2019-11-22 Thread GitBox
u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate 
external library wrappers for DSOModule
URL: https://github.com/apache/incubator-tvm/pull/4280#issuecomment-557607347
 
 
   > 
   > 
   > @u99127 please 
https://docs.tvm.ai/contribute/code_review.html#approve-and-request-changes-explicitly
   
   Sorry about the noise, it seems I misread the pull request this morning as 
being merged but now I realize it was because of the CI changes that got merged 
and not the actual PR.


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [incubator-tvm] u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate external library wrappers for DSOModule

2019-11-22 Thread GitBox
u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate 
external library wrappers for DSOModule
URL: https://github.com/apache/incubator-tvm/pull/4280#issuecomment-557454651
 
 
   
   There are still a couple of changes requested in the review that need to be 
addressed. It would be good to clean this up with a separate pull request.


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [incubator-tvm] u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate external library wrappers for DSOModule

2019-11-21 Thread GitBox
u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate 
external library wrappers for DSOModule
URL: https://github.com/apache/incubator-tvm/pull/4280#issuecomment-557271412
 
 
   > @u99127 Thanks for your comment.
   
   Thanks @zhiics and @tqchen.
   
   


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [incubator-tvm] u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate external library wrappers for DSOModule

2019-11-21 Thread GitBox
u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate 
external library wrappers for DSOModule
URL: https://github.com/apache/incubator-tvm/pull/4280#issuecomment-557221217
 
 
   > The directory convention should be something we document in the documents. 
Currently a convention location for the project would be under 
`src/runtime/contrib`.
   > 
   
   And the example added should fit with the documentation ?
   
   > However, as long as the code are linked to the tvm runtime. The example 
can run. @u99127 are you suggesting that we should move the folder directly 
under `src/runtime/contrib`?
   
   Yes or the example should be arranged so that this is a canonical example 
for integration with apps/examples and src/runtime/contrib.
   
   My understanding is that the apps/example that's being put together is for 
the end user to consume TVM or TVM integrated with the 3rd party library 
integration, but the intermediate step of providing the framework for the 
integrator is not being shown or is not obvious to me.
   
   regards
   Ramana


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [incubator-tvm] u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate external library wrappers for DSOModule

2019-11-21 Thread GitBox
u99127 commented on issue #4280: [TVM][RUNTIME] A minimum example to generate 
external library wrappers for DSOModule
URL: https://github.com/apache/incubator-tvm/pull/4280#issuecomment-557047170
 
 
   > Comments about json runtime. I would consider move the json runtime to
   > `apps/extern_runtime` to allow us to write examples even in python. It 
would be great to see examples like:
   > 
   
   > ```python
   > mod = DSOModule()
   > mod.import_module(JSONExampleModule())
   > 
   > mod.export_library("xyz.so")
   > 
   > mod = tvm.module.load("xyz.so")
   > # run that he code that can uses functions in the JSONExampleModule
   > ```
   > 
   > The main goal is to provide readers an easy reference point about how to 
add their own runtimes.
   
   Isn't it also to provide a standardized structure for them to integrate 
their runtimes ? Are we expecting such integrations to happen via the 3rd party 
directory mechanism which is currently really for build dependencies. Giving an 
example integration shows how it can be done, providing with an initial 
location and standard mechanism for the simple toy integration. 
   
   In my opinion a simple integration should provide a template to follow. 
Putting this in examples appears to suggest that folks can do what they want 
with the 3rd party runtime integration.
   
   > 
   > As a followup, we can add docs/dev/custom_codegen_runtime.rst that 
introduces both the compile to DSOModule method and the extern json runtime 
example, with reference to the folder.
   
   I'm puzzled by this direction. 
   
   What is missing for me in this pull request is actually a directory 
structure or something that indicates where and how custom run times can go in. 
This suggests that we could have a full custom run time sitting in the app / 
examples folder  ? Instead shouldn't a custom run time really be in the 3rd 
party folder rather than sitting in the app folder or indeed under 
tvm/runtime/3rdparty/ or some such.
   
   
   Ramana


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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services