Skip to content

Conversation

@tcbegley
Copy link
Contributor

Description

This PR makes a few changes to lazy stacked specs:

  • Remove unneeded placeholder methods in LazyStackedTensorSpec
  • Implement the device property for LazyStackedTensorSpec
  • Implement to_numpy for the two lazy stacked spec variants.

Would be great if you could check my understanding of what's required for to_numpy is correct.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 13, 2023
Copy link
Collaborator

@vmoens vmoens left a comment

Choose a reason for hiding this comment

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

LGTM!
maybe let's add a simple test for to_numpy()?

@tcbegley
Copy link
Contributor Author

I've added a couple of tests, I think this is good to go.

Copy link
Collaborator

@vmoens vmoens left a comment

Choose a reason for hiding this comment

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

LGTM

@vmoens vmoens merged commit 4bf6c5f into pytorch:stack_specs Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants