anirudhacharya commented on issue #12404: init.Constant does not work in symbol
URL: 
https://github.com/apache/incubator-mxnet/issues/12404#issuecomment-488880746
 
 
   The error happens here - 
https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/initializer.py#L116
 while trying to serialize a `numpy` array into json format. 
   
   I think the fix is instead of using the in-built `json.dumps` we should 
write our own custom JSONEncoder and JSONDecoder that will extend the one 
implemented in `json` package. This implementation should handle 
`numpy.ndarrays`. I will try to do that.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to