cellflow.networks.MLPBlock.get_variable

MLPBlock.get_variable(col, name, default=None)

Retrieves the value of a Variable.

Return type:

TypeVar(T)

Parameters:
  • col (str)

  • name (str)

  • default (T | None)

Args:

col: the variable collection. name: the name of the variable. default: the default value to return if the variable does not exist in

this scope.

Returns:

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