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

add stack and collate_fn to NamedTensor #6

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

LBerth
Copy link
Contributor

@LBerth LBerth commented Nov 4, 2024

  • Add stack static method : stacks a list of named tensors along a new dimension, with a chosen dim name and position of dimension
  • add collate_fn static method : stacks a list of named tensors along a new first dimension, named "batch"
  • add unit tests for both methods

@colon3ltocard colon3ltocard merged commit 1df085a into meteofrance:main Nov 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants