optax.tree_utils.tree_mul

Contents

optax.tree_utils.tree_mul#

optax.tree_utils.tree_mul(
tree_x: Any,
tree_y: Any,
) Any[source]#

Multiply two pytrees.

Parameters:
  • tree_x โ€“ first pytree.

  • tree_y โ€“ second pytree.

Returns:

the product of the two pytrees.