Skip to content

A few fixes for the domino pipeline. #863

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

Open
wants to merge 1 commit into
base: domino
Choose a base branch
from

Conversation

coreyjadams
Copy link
Collaborator

  • initialize the distributed manager, if it isn't already.
  • For partial datasets (surface only, volumen only) don't move "None" objects to cupy.
  • When sampling/shuffling, if the number of points is too high then don't error. Instead, shuffle and rely on padding.

PhysicsNeMo Pull Request

Description

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The CHANGELOG.md is up to date with these changes.
  • An issue is linked to this pull request.

Dependencies

- initialize the distributed manager, if it isn't already.
- For partial datasets (surface only, volumen only) don't move "None"
  objects to cupy.
- When sampling/shuffling, if the number of points is too high then
  don't error.  Instead, shuffle and rely on padding.
@@ -314,15 +314,16 @@ def pad_inp(arr: ArrayType, npoin: int, pad_value: float = 0.0) -> ArrayType:
return arr_padded


# CJA NOTE: the `sample_array` function is the same optimization I put into shuffle_array.
# Keeping the cupy compatible version (mine)
@profile
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is keeping the @profile decorator intended?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its harmless, I put those in to see whats expensive. On the gpu its useless, with numpy it's useful.

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.

2 participants