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
staticvoidMain(string[]args){List<int>a=newList<int>{1,-1,-2,-3};Tensorflow.NumPy.NDArrayaa=newTensorflow.NumPy.NDArray(a.ToArray());// Point AConsole.WriteLine("Hello World!");Console.Write("Hi");}
Point A will raise a error like this:
But if I use Tensorflow.NumPy.NDArray aa= (Tensorflow.NumPy.NDArray)a.ToArray(); in the position of Point A, the question solved.
Now I want to know if it is some of my error or others cause it happen.
Activity
Oceania2018 commentedon Nov 29, 2021
@cross-hello Can you try this sample?
cross-hello commentedon Nov 30, 2021
OK
I try:
The code pass. Could you figure me why it happen?
fix init ndarray in int array. #884
Oceania2018 commentedon Dec 5, 2021
Fixed for next release.
cross-hello commentedon Dec 6, 2021
Thank you~