mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
copyright + ack
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
|
||||
def tree_map(fn, tree, *rest):
|
||||
"""Applies ``fn`` to the leaves of the python tree ``tree`` and
|
||||
returns a new collection with the results.
|
||||
|
||||
Reference in New Issue
Block a user