This function starts the serial communication on band 9600. This is NOT modifiable.
#include <stdint.h>
#include "synduino.h"
void setup() {
startup();
}
To create weights, simply call the function createWeights(). It returns a datatype of int8_t**.
The function takes two parameters.
#include <stdint.h>
#include "synduino.h"
int8_t nodes[] = {4, 8, 8, 4};
int8_t layers = 4;
int8_t** weights = createWeights(nodes, layers);
In the above code example, we create 3 weight matrices.
(4, 8) -> (8, 8) -> (8, 4)
To create biases, it is very similar to creating weights. Simply call the function createBiases() which returns a datatype of int8_t**.
#include <stdint.h>
#include "synduino.h"
int8_t nodes[] = {4, 8, 8, 4};
int8_t layers = 4;
int8_t** biases = createBiases(nodes, layers);
In the above code example, we create 3 bias matrices.
(8,) -> (8,) -> (4,)