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 2017/12/29 05:56:15 UTC

[GitHub] szha closed pull request #9221: Fix autograd import path in Gluon style transfer example

szha closed pull request #9221: Fix autograd import path in Gluon style transfer example
URL: https://github.com/apache/incubator-mxnet/pull/9221
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/example/gluon/style_transfer/main.py b/example/gluon/style_transfer/main.py
index 0ed2d831bb..fa21a3695d 100644
--- a/example/gluon/style_transfer/main.py
+++ b/example/gluon/style_transfer/main.py
@@ -23,8 +23,8 @@
 np.set_printoptions(precision=2)
 from PIL import Image
 
-from mxnet import gluon
-from mxnet.gluon import nn, autograd, Block, HybridBlock, Parameter, ParameterDict
+from mxnet import autograd, gluon
+from mxnet.gluon import nn, Block, HybridBlock, Parameter, ParameterDict
 import mxnet.ndarray as F
 
 import net
diff --git a/example/gluon/style_transfer/net.py b/example/gluon/style_transfer/net.py
index 353a52c66c..a33ce427fb 100644
--- a/example/gluon/style_transfer/net.py
+++ b/example/gluon/style_transfer/net.py
@@ -17,8 +17,8 @@
 
 import numpy as np
 import mxnet as mx
-from mxnet import gluon
-from mxnet.gluon import nn, autograd, Block, HybridBlock, Parameter
+from mxnet import autograd, gluon
+from mxnet.gluon import nn, Block, HybridBlock, Parameter
 from mxnet.base import numeric_types
 import mxnet.ndarray as F
 


 

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