/* SampleCode */
FunctionStack<float> nn = new FunctionStack<float>(
new Convolution2D<float>(1, 32, 5, pad: 2, name: "l1 Conv2D"),
new ReLU<float>(name: "l1 ReLU"),
new MaxPooling<float>(2, 2, name: "l1 MaxPooling"),
new Convolution2D<float>(32, 64, 5, pad: 2, name: "l2 Conv2D"),
new ReLU<float>(name: "l2 ReLU"),
new MaxPooling<float>(2, 2, name: "l2 MaxPooling"),
new Linear<float>(7 * 7 * 64, 1024, name: "l3 Linear"),
new ReLU<float>(name: "l3 ReLU"),
new Dropout<float>(name: "l3 DropOut"),
new Linear<float>(1024, 10, name: "l4 Linear")
);
- Additional installation of the corresponding driver may be required to use OpenCL.
- Intel CPU or GPU: https://software.intel.com/en-us/articles/opencl-drivers
- AMD CPU or GPU: https://www.amd.com/en/support
- Nvidia GPU: https://developer.nvidia.com/opencl
If you have any questions or concerns, even minor ones, please feel free to use Issue.
If you want to communicate with us easily, please contact us via X(Twitter).
You can also check the current development status on X(Twitter).
X(Twitter): https://twitter.com/harujoh
Libraries: .NET Standard 2.0 or 2.1
Samples: .NET Framework 4.6.1