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 dynamo torch.Tensor.new test. #6661

Merged
merged 4 commits into from
Apr 8, 2024
Merged

Conversation

ysiraichi
Copy link
Collaborator

This PR adds a test for #6009.
The actual fix is implemented in the PyTorch main repository: pytorch/pytorch#121075

@miladm @JackCaoG

@ysiraichi ysiraichi changed the base branch from master to ysiraichi/add-test-expand-return March 2, 2024 15:59
@ysiraichi
Copy link
Collaborator Author

ysiraichi commented Mar 2, 2024

@ysiraichi ysiraichi force-pushed the ysiraichi/add-test-new-with-sizes branch from c465d5a to c3bc422 Compare March 5, 2024 11:44
@ysiraichi ysiraichi force-pushed the ysiraichi/add-test-new-with-sizes branch from c3bc422 to 52fa414 Compare April 3, 2024 15:34
@ysiraichi ysiraichi force-pushed the ysiraichi/add-test-new-with-sizes branch from 52fa414 to 3f30293 Compare April 3, 2024 15:35
@ysiraichi ysiraichi changed the base branch from ysiraichi/add-test-expand-return to master April 3, 2024 15:36
@ysiraichi
Copy link
Collaborator Author

I'm moving this one forward, since #6659 will take some time to get merged.

@ysiraichi
Copy link
Collaborator Author

@JackCaoG Could you take a look at it whenever you have some time?

@JackCaoG
Copy link
Collaborator

JackCaoG commented Apr 3, 2024

change lgtm but somehow CI doesn't get trigger. Can you do another push to the branch to see if it will trigger the CI? Otherwise start a new pr might be better.

@ysiraichi
Copy link
Collaborator Author

@JackCaoG Is this ok to land? All the CI test are passing, now.

def foo(x):
return x.new(*x.size()) + x

optfoo = torch.compile(backend="openxla")(foo)
Copy link
Collaborator

Choose a reason for hiding this comment

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

lol is it a new way of calling compile? it used to be torch.compile(foo, backend="openxla")

@JackCaoG JackCaoG merged commit 139d891 into master Apr 8, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants