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 2019/07/17 20:21:54 UTC

[GitHub] [incubator-mxnet] anirudh2290 commented on a change in pull request #15526: Fix AMP Tutorial warnings and failures

anirudh2290 commented on a change in pull request #15526: Fix AMP Tutorial warnings and failures
URL: https://github.com/apache/incubator-mxnet/pull/15526#discussion_r304624197
 
 

 ##########
 File path: docs/tutorials/amp/amp_tutorial.md
 ##########
 @@ -262,19 +262,20 @@ Below, we demonstrate for a gluon model and a symbolic model:
 ```python
 with mx.Context(mx.gpu(0)):
     # Below is an example of converting a gluon hybrid block to a mixed precision block
-    model = get_model("resnet50_v1")
-    model.collect_params().initialize(ctx=mx.current_context())
-    model.hybridize()
-    model(mx.nd.zeros((1, 3, 224, 224)))
-    converted_model = amp.convert_hybrid_block(model)
+    with warnings.catch_warnings(record=True) as w:
 
 Review comment:
   actually i am just trying to get around the ci which fails on warnings.

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


With regards,
Apache Git Services