ParameterDict.get_constant

ParameterDict.get_constant(self, name, value=None)

Retrieves a Constant with name self.prefix+name. If not found, get() will first try to retrieve it from “shared” dict. If still not found, get() will create a new Constant with key-word arguments and insert it to self.

Parameters:
name : str

Name of the desired Constant. It will be prepended with this dictionary’s prefix.

value : array-like

Initial value of constant.

Returns:
Constant

The created or retrieved Constant.