You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
I’ve trained my model using mxnet_1.3 python HybridBlock. Then I load the trained model in Scala. I didn’t get any errors when I run demo.Scala, and the output is shown in the following.
But now I got few problems:
Is possible to get the true value of the NDarray?
I followed the examples of the API https://mxnet.apache.org/api/scala/ndarray.html trying to print the value of NDarray by toarray. But I got an odd output looks like “F@4b553d2d” including the final output. I am very confused about the output value of NDArray.The demo code is shown in demo.Scala.
The API document of Mxnet demonstrates that the type input of the NDArray.array is restricted to Array[float].
Do I have to flatten my n-dimension matrix to one-dimension Array[float] when I want to create my own data?
Are there any other strategies to feed my data just like Numpy or python which directly take a matrix as an input?
Maybe I was doing something wrong. Please suggest!
Thank you
The text was updated successfully, but these errors were encountered:
@ustcfd About printing is werid stuff: I created something that is similar to ndarray in Python: #12536. The visualize function can help you get some context what is inside.
Your second request is also concerning in our current usage. Let me think about it and get you back.
Thank you very much for the reply ,which have deepened my understanding of mxnet by scala。@lanking520,the interface function perfectly solved my problem。
I’ve trained my model using mxnet_1.3 python HybridBlock. Then I load the trained model in Scala. I didn’t get any errors when I run demo.Scala, and the output is shown in the following.
But now I got few problems:
Is possible to get the true value of the NDarray?
I followed the examples of the API https://mxnet.apache.org/api/scala/ndarray.html trying to print the value of NDarray by toarray. But I got an odd output looks like “F@4b553d2d” including the final output. I am very confused about the output value of NDArray.The demo code is shown in demo.Scala.
The API document of Mxnet demonstrates that the type input of the NDArray.array is restricted to Array[float].
Do I have to flatten my n-dimension matrix to one-dimension Array[float] when I want to create my own data?
Are there any other strategies to feed my data just like Numpy or python which directly take a matrix as an input?
Maybe I was doing something wrong. Please suggest!
Thank you
The text was updated successfully, but these errors were encountered: