#include <inttypes.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nn.h"
Data Structures | |
struct | linkHandle |
struct | linkRep |
struct | memHandle |
struct | nodeMeta |
Functions | |
int | nnSaveNetwork (nnNet *net, void *handle, int(*nnWrite)(void *handle, void *data, size_t len)) |
Save a network's topology and weights. | |
int | nnSaveNetworkFile (nnNet *net, FILE *f) |
Save a network's topology and weights to a file. | |
int | nnSaveNetworkMem (nnNet *net, void *data, size_t len) |
Save a network's topology and weights to memory. | |
int | nnSaveNetworkDynMem (nnNet *net, void **ptr, size_t *len) |
Save a network's topology and weights to dynamically-allocated memory. | |
nnNet * | nnLoadNetwork (void *handle, int(*nnRead)(void *handle, void *data, size_t len)) |
Load a network. | |
nnNet * | nnLoadNetworkFile (FILE *f) |
Load a network from a file. | |
nnNet * | nnLoadNetworkMem (void *data, size_t len) |
Load a network from memory. | |
nnFileType | nnGuessFileType (FILE *f) |
Determines the type of a file. |
|
Value: ((ROTR((x), 8) & 0xff00ff00L) | \ (ROTL((x), 8) & 0x00ff00ffL)) |
|
Determines the type of a file.
|
|
Load a network.
|
|
Load a network from a file.
|
|
Load a network from memory.
|
|
Save a network's topology and weights.
|
|
Save a network's topology and weights to dynamically-allocated memory.
|
|
Save a network's topology and weights to a file.
|
|
Save a network's topology and weights to memory.
|
|
Initial value:
"$Id: nnfile.c 319 2003-02-22 08:57:23Z asaddi $" |