Getting Started
Reference Documentation
Advanced Topics
Examples
API Documentation
tree_scale()
Scalar-Pytree product via tree_map.
alpha (Array) – Scalar
Array
a – Arbitrary PyTree
Any
Returns a PyTree with all leaves scaled by alpha.