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 2019/12/03 13:44:45 UTC

[GitHub] [incubator-tvm] masahi commented on issue #4458: [Quantization] Fix annotation for multiply op

masahi commented on issue #4458: [Quantization] Fix annotation for multiply op
URL: https://github.com/apache/incubator-tvm/pull/4458#issuecomment-561173950
 
 
   @vinx13 I'm trying to get a simple quantization test case working. How can I get an int8 output from below? I'm getting FP32 result.
   
   ```
       dim = 32
       x = relay.var("x", shape=(1, dim))
       w = relay.var("w", shape=(dim, dim))
       fc = relay.nn.dense(x, w)
       f = relay.Function([x, w], x * fc)
       mod = relay.Module.from_expr(f)
   
       with relay.quantize.qconfig():
           print(relay.quantize.quantize(mod))
   ```

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