szha commented on a change in pull request #18853:
URL: https://github.com/apache/incubator-mxnet/pull/18853#discussion_r464607166



##########
File path: python/mxnet/gluon/parameter.py
##########
@@ -662,6 +662,7 @@ def cast(self, dtype):
             The new data type.
         """
         self._dtype = dtype
+        self._var = None  # Clear Symbol Variable as it caches the dtype

Review comment:
       how is this related to the cached graph and cached op fields?




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


Reply via email to