stu1130 commented on a change in pull request #12412: Infer dtype in
SymbolBlock import from input symbol
URL: https://github.com/apache/incubator-mxnet/pull/12412#discussion_r215860072
##########
File path: tests/python/unittest/test_gluon.py
##########
@@ -336,6 +339,34 @@ def hybrid_forward(self, F, x):
net.hybridize()
assert isinstance(net(mx.nd.zeros((16, 10))), mx.nd.NDArray)
+ # Test case to verify if initializing the SymbolBlock from a model with
params
+ # other than fp32 param dtype.
+
+ # 1. Load a resnet model, cast it to fp64 and export
+ tmp = tempfile.mkdtemp()
Review comment:
According to python docs, it seems that it should be deleted by the user.
[The user of mkdtemp() is responsible for deleting the temporary directory and
its contents when done with
it.](https://docs.python.org/2/library/tempfile.html#tempfile.mkdtemp)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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