Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #62

Open
wants to merge 9 commits into
base: v2
Choose a base branch
from
Open

V2 #62

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update utils.py
  • Loading branch information
CurtinComputing authored Aug 20, 2022
commit 58295dc8cf4b2e8161a83467ddbcc35792a0a7e4
2 changes: 1 addition & 1 deletion nerfies/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ def strided_subset(sequence, count):

def tree_collate(list_of_pytrees):
"""Collates a list of pytrees with the same structure."""
return tree_util.tree_multimap(lambda *x: np.stack(x), *list_of_pytrees)
return tree_util.tree_map(lambda *x: np.stack(x), *list_of_pytrees)


@contextlib.contextmanager
Expand Down