ott.neural.networks.potentials.MLP.get_variable

ott.neural.networks.potentials.MLP.get_variable#

MLP.get_variable(col, name, default=None)#

Retrieves the value of a Variable.

Parameters:
  • col (str) – the variable collection.

  • name (str) – the name of the variable.

  • default (Optional[TypeVar(T)]) – the default value to return if the variable does not exist in this scope.

Return type:

TypeVar(T)

Returns:

The value of the input variable, of the default value if the variable doesn’t exist in this scope.