Overview The Various Math Functions (VMF) library is a collection of mathematical functions for various applications. It provides implementations of ReLU, Leaky ReLU, Sigmoid, and Heaviside step functions, currently on CPU only, but were working on a CUDA version.
Features The VMF library offers the following features:
- ReLU (Rectified Linear Unit) activation function
- Leaky ReLU activation function with adjustable slope
- Sigmoid function
- Heaviside step function
Example Usage An example can be found in the main.cpp file. Building and Running To build and run the VMF library, follow these steps:
- Clone the repository:
git clone https://github.com/N0CTRON/VMF
- Navigate to the repository directory:
cd VMF
- Compile the code:
g++ -o main main.cpp vmf.hpp
- Run the program:
chmod +x ./main && ./main
Importing
To use the VMF library in your own projects, simply include the vmf.cpp
/ vmf.cu
file in your code and use the provided functions.
License The VMF library is licensed under the Apache 2.0 License.