NumSharp icon indicating copy to clipboard operation
NumSharp copied to clipboard

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

Open gscheck opened this issue 5 years ago • 3 comments

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

gscheck avatar Dec 09 '20 16:12 gscheck

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

Oceania2018 avatar Dec 09 '20 17:12 Oceania2018

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

gscheck avatar Dec 09 '20 18:12 gscheck

Remove project reference means remove it from package. image

You still need:

using Numsharp;

The easiest step is just follow this sample project.

Oceania2018 avatar Dec 09 '20 20:12 Oceania2018