void DeleteNet_bn ( net_bn*  net )

Removes net from the system, and releases all resources it uses (e.g., frees memory), including all its substructures (e.g., nodes).

You must not try to use net, or any of the nodes that were in it, after calling this.

It is okay if net is a NULL pointer (then no action is taken).


In versions previous to 2.09, this function was named FreeNet_bn.

See also:

NewNet_bn    Creates a new net
DeleteNode_bn    Removes a node from a net, and releases the memory it uses