SciSharp / SciSharp-Stack-Examples

Practical examples written in SciSharp's machine learning libraries
http://scisharpstack.org
Apache License 2.0
313 stars 100 forks source link

Example not compiling #22

Closed axeldietz closed 3 years ago

axeldietz commented 3 years ago

Just downloaded the full Example project and ran the command:

dotnet run --project src/TensorFlowNET.Examples -ex "Linear Regression".

I got the following errors:

C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master>dotnet run --project src/TensorFlowNET.Examples -ex "Linear Regression" ImageProcessing\DigitRecognitionRnnKeras.cs(130,41): error CS0246: The type or namespace name 'Tensors' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj] ImageProcessing\DigitRecognitionRnnKeras.cs(130,28): error CS0246: The type or namespace name 'Tensors' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj] NeuralNetworks\FullyConnectedKeras.cs(178,45): error CS0246: The type or namespace name 'Tensors' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj] NeuralNetworks\FullyConnectedKeras.cs(178,32): error CS0246: The type or namespace name 'Tensors' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj] ImageProcessing\DigitRecognitionCnnKeras.cs(207,45): error CS0246: The type or namespace name 'Tensors' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj] ImageProcessing\DigitRecognitionCnnKeras.cs(207,32): error CS0246: The type or namespace name 'Tensors' could not be found (are you missing a using directive or an assembly reference?) [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj] ImageProcessing\TransferLearningWithInceptionV3.cs(512,21): warning CS0114: 'TransferLearningWithInceptionV3.PrepareData()' hides inherited member 'SciSharpExample.PrepareData()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword. [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj] ImageProcessing\TransferLearningWithInceptionV3.cs(591,22): warning CS0114: 'TransferLearningWithInceptionV3.ImportGraph()' hides inherited member 'SciSharpExample.ImportGraph()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword. [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj] TextProcessing\CnnTextClassification.cs(188,22): warning CS0114: 'CnnTextClassification.BuildGraph()' hides inherited member 'SciSharpExample.BuildGraph()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword. [C:\Users\User\Documents\Projects\Internal\Vision\SciSharp-Stack-Examples-master\src\TensorFlowNET.Examples\TensorFlowNET.Examples.csproj]

The build failed. Fix the build errors and run again.

I get the same errors compiling in VisualStudio.

Using VS Version 16.7.5

I updated the NuGet packages too, no results.

Am I missing something?

Axl

axeldietz commented 3 years ago

Apparently v0.20.1 which is included in the Solution using Nuget, does not have class Tensors.

Latest Github version of October 10 2020 does have it.

Oceania2018 commented 3 years ago

Updated.

axeldietz commented 3 years ago

Xie, xie!

Met hartelijke groet,

Namens Trackware B.V. Axel Dietz

Van: Haiping notifications@github.com Verzonden: zaterdag 17 oktober 2020 16:09 Aan: SciSharp/SciSharp-Stack-Examples SciSharp-Stack-Examples@noreply.github.com CC: Axl axel@meiwenti.nl; State change state_change@noreply.github.com Onderwerp: Re: [SciSharp/SciSharp-Stack-Examples] Example not compiling (#22)

Updated. — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/SciSharp/SciSharp-Stack-Examples/issues/22#issuecomment-711003720 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD7VRQTAA2ICMDJQYZ2WRUTSLGQQDANCNFSM4SNK4N6A . https://github.com/notifications/beacon/AD7VRQTH6TT3VX4ZMHYSG3DSLGQQDA5CNFSM4SNK4N6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFJQQ4SA.gif

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient Virusvrij. http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient www.avg.com