You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/01/17 01:38:50 UTC

[GitHub] [incubator-mxnet] vandanavk commented on issue #15993: Add a contrib operator for Constant

vandanavk commented on issue #15993: Add a contrib operator for Constant
URL: https://github.com/apache/incubator-mxnet/pull/15993#issuecomment-575426224
 
 
   > I mean, If we did some constant folding optimization in the graph, and generate a new tensor which is not filled with same values. For example,
   > 
   > ```
   > scaled_weight = weight * scale, 
   > out = convolution(weight = scaled_weight)
   > ```
   > 
   > For this code, that scale multiply will execute many times during each iteration of inference. Because weight and scale are all constant, so we can fold them before inference, and use a constant node to replace the folded result in the graph. The value holding by constant node is vary, which can't be generated with simple pattern.
   
   which operator is currently used in this scenario?

----------------------------------------------------------------
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


With regards,
Apache Git Services