ott.neural.layers.PosDefPotentials.put_variable

ott.neural.layers.PosDefPotentials.put_variable#

PosDefPotentials.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.