Skip to content

Tensorflow.Numpy.NDArray constructor abnormal?  #884

@cross-hello

Description

@cross-hello

Here are my code:

 static void Main(string[] args)
        {
            List<int> a =new List<int>{1,-1,-2,-3};
            Tensorflow.NumPy.NDArray aa=new Tensorflow.NumPy.NDArray(a.ToArray());// Point A
            Console.WriteLine("Hello World!");
            Console.Write("Hi");
        }

Point A will raise a error like this:
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions