Skip to content

Conversation

@smessmer
Copy link
Contributor

@smessmer smessmer commented Apr 5, 2021

Stack from ghstack:

We have some operators that previously allowed you to pass in an undefined tensor to the out argument,
and then would go on to allocate that for you. This behavior is broken and doesn't work in JIT when things
are converted to/from IValues. Because of this, it blocks backend fallbacks because they force going
through IValue.

This PR is one in a series to remove that behavior and forces out arguments to be defined tensors.

It only looks at at::_linalg_solve_out_helper_cuda(), but there's more PRs for other ops.

Differential Revision: D27572759

…per_cuda

We have some operators that previously allowed you to pass in an undefined tensor to the out argument,
and then would go on to allocate that for you. This behavior is broken and doesn't work in JIT when things
are converted to/from IValues. Because of this, it blocks backend fallbacks because they force going
through IValue.

This PR is one in a series to remove that behavior and forces out arguments to be defined tensors.

It only looks at at::_linalg_solve_out_helper_cuda(), but there's more PRs for other ops.

Differential Revision: [D27572759](https://our.internmc.facebook.com/intern/diff/D27572759/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Apr 5, 2021

💊 CI failures summary and remediations

As of commit f719860 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-scanned failure(s)

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Copy link
Collaborator

@ngimel ngimel left a comment

Choose a reason for hiding this comment

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

lgtm

…lve_out_helper_cuda"

We have some operators that previously allowed you to pass in an undefined tensor to the out argument,
and then would go on to allocate that for you. This behavior is broken and doesn't work in JIT when things
are converted to/from IValues. Because of this, it blocks backend fallbacks because they force going
through IValue.

This PR is one in a series to remove that behavior and forces out arguments to be defined tensors.

It only looks at at::_linalg_solve_out_helper_cuda(), but there's more PRs for other ops.

Differential Revision: [D27572759](https://our.internmc.facebook.com/intern/diff/D27572759/)

[ghstack-poisoned]
smessmer added 3 commits April 6, 2021 11:42
…lve_out_helper_cuda"

We have some operators that previously allowed you to pass in an undefined tensor to the out argument,
and then would go on to allocate that for you. This behavior is broken and doesn't work in JIT when things
are converted to/from IValues. Because of this, it blocks backend fallbacks because they force going
through IValue.

This PR is one in a series to remove that behavior and forces out arguments to be defined tensors.

It only looks at at::_linalg_solve_out_helper_cuda(), but there's more PRs for other ops.

Differential Revision: [D27572759](https://our.internmc.facebook.com/intern/diff/D27572759/)

[ghstack-poisoned]
…lve_out_helper_cuda"

We have some operators that previously allowed you to pass in an undefined tensor to the out argument,
and then would go on to allocate that for you. This behavior is broken and doesn't work in JIT when things
are converted to/from IValues. Because of this, it blocks backend fallbacks because they force going
through IValue.

This PR is one in a series to remove that behavior and forces out arguments to be defined tensors.

It only looks at at::_linalg_solve_out_helper_cuda(), but there's more PRs for other ops.

Differential Revision: [D27572759](https://our.internmc.facebook.com/intern/diff/D27572759/)

[ghstack-poisoned]
…lve_out_helper_cuda"

We have some operators that previously allowed you to pass in an undefined tensor to the out argument,
and then would go on to allocate that for you. This behavior is broken and doesn't work in JIT when things
are converted to/from IValues. Because of this, it blocks backend fallbacks because they force going
through IValue.

This PR is one in a series to remove that behavior and forces out arguments to be defined tensors.

It only looks at at::_linalg_solve_out_helper_cuda(), but there's more PRs for other ops.

Differential Revision: [D27572759](https://our.internmc.facebook.com/intern/diff/D27572759/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 87cf277.

@facebook-github-bot facebook-github-bot deleted the gh/smessmer/308/head branch April 10, 2021 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants