SciSharp / NumSharp

High Performance Computation for N-D Tensors in .NET, similar API to NumPy.
https://github.com/SciSharp
Apache License 2.0
1.37k stars 192 forks source link

NDArray exists in both NumSharp.Core, Version=0.20.5.0 and NumSharp.Lite, Version=0.1.9.0 #433

Open gscheck opened 3 years ago

gscheck commented 3 years ago

I get the following error when trying to compile an example:

Severity Code Description Project File Line Suppression State Error CS0433 The type 'NDArray' exists in both 'NumSharp.Core, Version=0.20.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' and 'NumSharp.Lite, Version=0.1.9.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Tensorflow1 I:\Operations\Test Engineering\Test Eng\Software Development\AOI\Tensorflow1\Tensorflow1\Form1.cs 47 Active

I am only using TensorFlow.NET and NumSharp libraries.

See screen shots below:

image

image

Oceania2018 commented 3 years ago

Remove NumSharp reference, just reference TensorFlow.NET project. It will include NumSharp automatically.

gscheck commented 3 years ago

If I remove the NumSharp reference, I get the following error.

Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'NDArray' could not be found (are you missing a using directive or an assembly reference?) Tensorflow1 I:\Operations\Test Engineering\Test Eng\Software Development\AOI\Tensorflow1\Tensorflow1\Form1.cs 46 Active

image

image

Oceania2018 commented 3 years ago

Remove project reference means remove it from package. image

You still need:

using Numsharp;

The easiest step is just follow this sample project.