-
Notifications
You must be signed in to change notification settings - Fork 6.8k
how to convert parameters dtype from float32 to float64 in gluon? #9067
Comments
Cast data to float64, and the corresponding weights in model will be initialized to float64 accordingly once you call |
@zhreshold thx for your replies! I succeed using cast float32 paramster to float64. however, after cast parameters to float64, there is a error : |
Similar to #8799 |
@zhaoningning Hello, do you still experience this issue? If so, would you please provide some example scripts to reproduce your issue? Thanks! |
I could reproduce this error using the following example from #8799. I will work on this issue.
|
@zhaoningning Could you provide a small script of your issue. I would like to verify my fix since your description of the issue is not exactly the same as #8799. Thanks! |
@zhaoningning are you able to provide a script reproducing the issue? |
@apeforest @lupesko sorry,I can not reproduce this issue after such a long time... |
@zhaoningning Sorry for the delayed response. I believe your issue should have been fixed by #12290 if not already by other PRs. We will be responsive to issues filed in the future. Thank you for your continuing support of MXNet. |
@sandeep-krishnamurthy This issue has been fixed. Please close this issue. |
I need to do this because model produce very small values, and float32 is not suitable in
this case, Does anyone who has any ideas about convert float32 parameter to float64 in gluon?
The text was updated successfully, but these errors were encountered: