You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
mxnet.symbol.Variable(name, attr=None, shape=None, lr_mult=None, wd_mult=None, dtype=None, init=None, stype=None, **kwargs)
The input parameter init, I used mxnet.initializer.Constant(value).
The introduction of Constant class says "Initializes the weights to a given value. The value passed in can be a scalar or a NDarray that matches the shape of the parameter to be set", so I use a NDarray as "value" parameter.
Now, accident happened......
In class Variable, if init is not an instance of string, init.dumps() will be called.
"dumps" method is implemented in class mxnet.initializer.Initializer, the superclass of Constant.
Hey, this is the MXNet Label Bot.
Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it.
Here are my recommended labels: Bug, Feature
Description
mxnet.symbol.Variable(name, attr=None, shape=None, lr_mult=None, wd_mult=None, dtype=None, init=None, stype=None, **kwargs)
The input parameter init, I used mxnet.initializer.Constant(value).
The introduction of Constant class says "Initializes the weights to a given value. The value passed in can be a scalar or a NDarray that matches the shape of the parameter to be set", so I use a NDarray as "value" parameter.
Now, accident happened......
In class Variable, if init is not an instance of string, init.dumps() will be called.
"dumps" method is implemented in class mxnet.initializer.Initializer, the superclass of Constant.
NDarray is not JSON serializable...
Crash...
The text was updated successfully, but these errors were encountered: