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 batched version of trtrs #18025

Closed
wants to merge 7 commits into from
Closed

Conversation

vishwakftw
Copy link
Contributor

@vishwakftw vishwakftw commented Mar 14, 2019

  • Remove single batch TH/THC implementations
  • Remove _batch_trtrs_lower from multivariate_normal
  • Add tests for batched behavior
  • Modify trtrs_backward to accommodate for batched case
  • Modify docs

In a future PR, this will be renamed to triangular_solve.

- Remove single batch TH/THC implementations
@vishwakftw vishwakftw marked this pull request as ready for review March 15, 2019 11:45
@vishwakftw vishwakftw changed the title [WIP] Add batched version of trtrs Add batched version of trtrs Mar 15, 2019
@vishwakftw vishwakftw added the ready for review (this tag is deprecated) All PRs are ready for review unless they are draft, WIP, or have undismissed requested changes label Mar 15, 2019
result = at::_cholesky_solve_helper(self, A, upper);
Tensor result_tmp;
result_tmp = at::_cholesky_solve_helper(self, A, upper);
result.resize_as_(result_tmp).copy_(result_tmp);
return result;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice catch!

@vishwakftw
Copy link
Contributor Author

@pytorchbot retest this please

@vishwakftw
Copy link
Contributor Author

@ifedan Is this good to go?

@ifedan
Copy link
Contributor

ifedan commented Mar 19, 2019

@ifedan Is this good to go?
yep, looks good to me.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ifedan is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ifedan is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Mar 20, 2019
Summary:
- Remove single batch TH/THC implementations
- Remove `_batch_trtrs_lower` from `multivariate_normal`
- Add tests for batched behavior
- Modify trtrs_backward to accommodate for batched case
- Modify docs

In a future PR, this will be renamed to `triangular_solve`.
Pull Request resolved: pytorch/pytorch#18025

Differential Revision: D14523004

Pulled By: ifedan

fbshipit-source-id: 11c6a967d107f969b60e5a5c73ce6bb8099ebbe1
@vishwakftw vishwakftw deleted the trtrs-batched branch March 25, 2019 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
open source ready for review (this tag is deprecated) All PRs are ready for review unless they are draft, WIP, or have undismissed requested changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants