Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue a warning where code relies on a bug where treedef.flatten_up_t…
…o(...) was overly permissive for None treedefs. For example, tree_map(..., None, [2, 3]) previously did not raise an error, but None is a container and only leaves can be considered tree prefixes in this case. In a future release of JAX, this behavior will become an error. PiperOrigin-RevId: 641690427
- Loading branch information