joaopauloschuler / neural-api

CAI NEURAL API - Pascal based deep learning neural network API optimized for AVX, AVX2 and AVX512 instruction sets plus OpenCL capable devices including AMD, Intel and NVIDIA.
GNU Lesser General Public License v2.1
356 stars 195 forks source link

examples VisualGAN #95

Closed magicse closed 1 year ago

magicse commented 1 year ago

When compiling example VisaulGAN (Lazarus) I get next error - uvisualgan.pas(326,5) Error: Wrong number of parameters specified for call to "Create" neuralnetwork.pas(3093,24) Error: Found declaration: constructor Create(LongInt;LongInt;LongInt);

joaopauloschuler commented 1 year ago

@magicse, thank you for the report. I can reproduce it. I'll fix in the next version.

joaopauloschuler commented 1 year ago

@magicse , You can search for TNNetReLUL.Create(-40, +40) // Protection against overflow and then replace by TNNetReLUL.Create(-40, +40, 0) // Protection against overflow

This will solve the problem.