cellflow.networks.FilmBlock.has_variable

FilmBlock.has_variable(col, name)

Checks if a variable of given collection and name exists in this Module.

See flax.core.variables for more explanation on variables and collections.

Return type:

bool

Parameters:
Args:

col: The variable collection name. name: The name of the variable.

Returns:

True if the variable exists.