You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/11/15 01:20:12 UTC

[GitHub] zhreshold commented on a change in pull request #12691: [MXNET-1001] Add new cuddn flag in Gluon Conv blocks to control - cudnn_tune, cudnn_off params

zhreshold commented on a change in pull request #12691: [MXNET-1001] Add new cuddn flag in Gluon Conv blocks to control - cudnn_tune, cudnn_off params
URL: https://github.com/apache/incubator-mxnet/pull/12691#discussion_r233682821
 
 

 ##########
 File path: tests/python/gpu/test_gluon_gpu.py
 ##########
 @@ -408,6 +431,60 @@ def tensor_size(big_tensor_bytes):
         # Evaluate model
         net(data_in).asnumpy()
 
+@with_seed()
+def test_conv_invalid_cudnn_flag():
+    try:
+        _check_layer_forward(nn.Conv1D(16, 3, in_channels=4, cudnn='fail_me'), (1, 4, 10))
+        assert False, "Gluon Conv1D block did not raise the AssertionError for invalid cudnn flag."
+    except AssertionError:
 
 Review comment:
   Use  `AssertRaises`

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services