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/04/11 19:15:04 UTC
[GitHub] [incubator-mxnet] lanking520 commented on a change in pull request
#14668: [MXNET-1287] Feat dep
lanking520 commented on a change in pull request #14668: [MXNET-1287] Feat dep
URL: https://github.com/apache/incubator-mxnet/pull/14668#discussion_r274600826
##########
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:
Why change this?
----------------------------------------------------------------
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