ott.neural.networks.potentials.BasePotential.put_variable

ott.neural.networks.potentials.BasePotential.put_variable#

BasePotential.put_variable(col, name, value)#

Updates the value of the given variable if it is mutable, or an error otherwise.

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

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

  • value (Any) – the new value of the variable.