zachgk commented on a change in pull request #14668: [MXNET-1287] Feat dep
URL: https://github.com/apache/incubator-mxnet/pull/14668#discussion_r274628905
 
 

 ##########
 File path: 
scala-package/examples/src/main/scala/org/apache/mxnetexamples/neuralstyle/NeuralStyle.scala
 ##########
 @@ -39,7 +39,7 @@ object NeuralStyle {
   private val logger = LoggerFactory.getLogger(classOf[NeuralStyle])
 
   def preprocessContentImage(path: String, longEdge: Int, ctx: Context): 
NDArray = {
-    val img = Image(new File(path))
+    val img = Image.fromFile(new File(path))
 
 Review comment:
   There was a warning against using Image(). I don't remember what the warning 
was, though.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to