You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2020/07/22 22:51:47 UTC

[GitHub] [incubator-tvm] alexbooth opened a new pull request #6118: Add 'get_num_inputs' to GraphRuntime

alexbooth opened a new pull request #6118:
URL: https://github.com/apache/incubator-tvm/pull/6118


   I have an app level use case that this information is useful for. Implementation mirrors the existing 'get_num_outputs' API.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-tvm] junrushao1994 commented on pull request #6118: Add 'get_num_inputs' to GraphRuntime

Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on pull request #6118:
URL: https://github.com/apache/incubator-tvm/pull/6118#issuecomment-663159381


   just curious, what is it used for?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-tvm] zhiics commented on pull request #6118: Add 'get_num_inputs' to GraphRuntime

Posted by GitBox <gi...@apache.org>.
zhiics commented on pull request #6118:
URL: https://github.com/apache/incubator-tvm/pull/6118#issuecomment-663303284


   The number contains both inputs and weights. Is that what you want?


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-tvm] MarisaKirisame merged pull request #6118: Add 'get_num_inputs' to GraphRuntime

Posted by GitBox <gi...@apache.org>.
MarisaKirisame merged pull request #6118:
URL: https://github.com/apache/incubator-tvm/pull/6118


   


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-tvm] alexbooth edited a comment on pull request #6118: Add 'get_num_inputs' to GraphRuntime

Posted by GitBox <gi...@apache.org>.
alexbooth edited a comment on pull request #6118:
URL: https://github.com/apache/incubator-tvm/pull/6118#issuecomment-663309975


   > The number contains both inputs and weights. Is that what you want?
   
   Yes, not just the input data but potential input weights as well. I want the length of "arg_nodes" from the graph json.  
   For outputs we can easily iterate over tensors with `get_num_outputs()` api and the `get_output(index)` function. This change allows the same for the existing `get_input(index)` function.


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [incubator-tvm] alexbooth commented on pull request #6118: Add 'get_num_inputs' to GraphRuntime

Posted by GitBox <gi...@apache.org>.
alexbooth commented on pull request #6118:
URL: https://github.com/apache/incubator-tvm/pull/6118#issuecomment-663309975


   > The number contains both inputs and weights. Is that what you want?
   
   Yes, not just the input data but potential input weights as well. I want the length of "arg_nodes" from the graph json.  
   For outputs we can easily iterate over tensors with `get_num_outputs()` api and the `get_output(index)` function. This change allows the same for the existing `get_input(index)`.


----------------------------------------------------------------
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:
users@infra.apache.org