Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix gpu test
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Aug 3, 2020
1 parent 644c730 commit 0b45794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/python/unittest/test_gluon.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ def hybrid_forward(self, F, x):
if compute_before_cast:
# Compute before casting to catch bugs where symbol dtype isn't casted correctly GH-18843
net_fp32.initialize()
net_fp32(mx.nd.zeros((1,3,224,224)))
net_fp32(mx.nd.zeros((1,3,224,224)), ctx=ctx)
net_fp32.cast('float64')
net_fp32.hybridize()
data = mx.nd.zeros((1,3,224,224), dtype='float64', ctx=ctx)
Expand Down

0 comments on commit 0b45794

Please sign in to comment.