FunctionSet (deprecated)

class chainer.FunctionSet(**links)[ソース]

Set of links (as “parameterized functions”).

FunctionSet is a subclass of Chain. Function registration is done just by adding an attribute to object.

バージョン v1.5 で撤廃: Use Chain instead.

注釈

FunctionSet was used for manipulation of one or more parameterized functions. The concept of parameterized function is gone, and it has been replaced by Link and Chain.

collect_parameters()[ソース]

Returns a tuple of parameters and gradients.

戻り値:Tuple (pair) of two tuples. The first element is a tuple of parameter arrays, and the second is a tuple of gradient arrays.
copy_parameters_from(params)[ソース]

Copies parameters from another source without reallocation.

パラメータ:params (Iterable) – Iterable of parameter arrays.
gradients

Tuple of gradient arrays of all registered functions.

The order of gradients is consistent with parameters() property.

parameters

Tuple of parameter arrays of all registered functions.

The order of parameters is consistent with parameters() property.