[GitHub] [incubator-mxnet] shoubhik commented on issue #16177: How to dump quantized weights from MKLDNN as Ndarray

2019-09-16 Thread GitBox
shoubhik commented on issue #16177: How to dump quantized weights from MKLDNN 
as Ndarray
URL: 
https://github.com/apache/incubator-mxnet/issues/16177#issuecomment-532056594
 
 
   thanks this has been very helpful.


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-mxnet] shoubhik commented on issue #16177: How to dump quantized weights from MKLDNN as Ndarray

2019-09-16 Thread GitBox
shoubhik commented on issue #16177: How to dump quantized weights from MKLDNN 
as Ndarray
URL: 
https://github.com/apache/incubator-mxnet/issues/16177#issuecomment-532054969
 
 
   and for bias also we can do the same thing?


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-mxnet] shoubhik commented on issue #16177: How to dump quantized weights from MKLDNN as Ndarray

2019-09-16 Thread GitBox
shoubhik commented on issue #16177: How to dump quantized weights from MKLDNN 
as Ndarray
URL: 
https://github.com/apache/incubator-mxnet/issues/16177#issuecomment-532051643
 
 
   @ZhennanQin in your previous comment for s8 it should be?
   
   `int8_t* ptr = 
static_cast(cached_weight_.GetMKLDNNData()->get_data_handle())`
   
   and for u8 case in your code snippet you have written
   
   ```
   MKLDNNStream::Get()->Submit();
   
   data[0] = cached_weight_.Reorder2Default();
   ```
   
   for s8 should it be
   ```
   MKLDNNStream::Get()->Submit();
   
   `int8_t* ptr = 
static_cast(cached_weight_.GetMKLDNNData()->get_data_handle())
   ```


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