The Complete SPRLIB & ANNLIB

fscanf_weight

- load a weight part of a network file (LOCAL)

SYNOPSIS

WEIGHT *fscanf_weight (stream,weight)

ARGUMENTS

FILE *stream A valid file pointer.
WEIGHT *weight A pointer to an allocated structure. If this argument is NULL, memory will be allocated using malloc_weight.

RETURNS

A pointer to a WEIGHT structure if successful, NULL in case of an error.

FUNCTION

This function is called by fscanf_network to read all weight parts of a network file, i.e. the part between WEIGHTBEGIN and WEIGHTEND. See NET-IO-format for the layout of this part.

NOTE

This function also reads the complete history of WEIGHT_VALUE structures. Since a weight structure can be supplied to store the read information, this function can be used to read biases (with pre-allocated structures, see UNIT's Theta field) as well as normal, non-allocated weights.

SEE ALSO

fscanf_network, fscanf_unit

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998