43 const struct Net *net,
const double *input,
51 const bool print_weights);
73 const bool return_weights);
Interface for neural network layers.
double * neural_layer_convolutional_output(const struct Layer *l)
Returns the output from a convolutional layer.
void neural_layer_convolutional_update(const struct Layer *l)
Updates the weights and biases of a convolutional layer.
static struct LayerVtbl const layer_convolutional_vtbl
Neural convolutional layer implemented functions.
void neural_layer_convolutional_forward(const struct Layer *l, const struct Net *net, const double *input)
Forward propagates a convolutional layer.
void neural_layer_convolutional_resize(struct Layer *l, const struct Layer *prev)
Resizes a convolutional layer if the previous layer has changed size.
struct Layer * neural_layer_convolutional_copy(const struct Layer *src)
Initialises and copies one convolutional layer from another.
void neural_layer_convolutional_print(const struct Layer *l, const bool print_weights)
Prints a convolutional layer.
bool neural_layer_convolutional_mutate(struct Layer *l)
Mutates a convolutional layer.
void neural_layer_convolutional_free(const struct Layer *l)
Free memory used by a convolutional layer.
size_t neural_layer_convolutional_save(const struct Layer *l, FILE *fp)
Writes a convolutional layer to a file.
size_t neural_layer_convolutional_load(struct Layer *l, FILE *fp)
Reads a convolutional layer from a file.
void neural_layer_convolutional_rand(struct Layer *l)
Randomises the weights of a convolutional layer.
void neural_layer_convolutional_init(struct Layer *l, const struct ArgsLayer *args)
Initialises a 2D convolutional layer.
void neural_layer_convolutional_backward(const struct Layer *l, const struct Net *net, const double *input, double *delta)
Backward propagates a convolutional layer.
char * neural_layer_convolutional_json_export(const struct Layer *l, const bool return_weights)
Returns a json formatted string of a convolutional layer.
Parameters for initialising a neural network layer.
Neural network layer interface data structure.
Neural network layer data structure.
double * delta
Delta for updating weights.
Neural network data structure.