Skip to content

Conversation

@vishwakftw
Copy link
Contributor

Summary:
Changelog:

Test Plan:

  • Add a test_det_logdet_slogdet_batched method in test_torch.py to test torch.det, torch.logdet and torch.slogdet on batched inputs. This relies on the correctness of torch.det on single matrices (tested by test_det_logdet_slogdet). A port of this test is added to test_cuda.py
  • Add autograd tests for batched inputs

Differential Revision: D16580988

Pulled By: ezyang

fbshipit-source-id: b76c87212fbe621f42a847e3b809b5e60cfcdb7a

Summary:
Changelog:
- Add batching for det / logdet / slogdet operations
- Update derivative computation to support batched inputs (and consequently batched outputs)
- Update docs
Pull Request resolved: pytorch#22909

Test Plan:
- Add a `test_det_logdet_slogdet_batched` method in `test_torch.py` to test `torch.det`, `torch.logdet` and `torch.slogdet` on batched inputs. This relies on the correctness of `torch.det` on single matrices (tested by `test_det_logdet_slogdet`). A port of this test is added to `test_cuda.py`
- Add autograd tests for batched inputs

Differential Revision: D16580988

Pulled By: ezyang

fbshipit-source-id: b76c87212fbe621f42a847e3b809b5e60cfcdb7a
@pytorchbot pytorchbot added oncall: jit Add this issue/PR to JIT oncall triage queue module: cuda Related to torch.cuda, and CUDA support in general module: docs Related to our documentation, both in docs/ and docblocks module: internals Related to internal abstractions in c10 and ATen module: operators module: tests Issues related to tests (not the torch.testing module) labels Jul 31, 2019
@vishwakftw
Copy link
Contributor Author

ASAN test failure seems to be unrelated.

@vishwakftw vishwakftw changed the title Allowing batching for det/logdet/slogdet operations (#22909) [v1.2.0] Allowing batching for det/logdet/slogdet operations (#22909) Aug 1, 2019
@vishwakftw
Copy link
Contributor Author

vishwakftw commented Aug 2, 2019

@soumith could this be merged in v1.2.0?

Edit: sorry I didn’t notice the status footer in the release tracker issue under each comment, I was just afraid this might be forgotten

@soumith soumith merged commit f0a65e6 into pytorch:v1.2.0 Aug 2, 2019
@vishwakftw vishwakftw deleted the v1.2.0-batch-det-logdet-slogdet branch August 2, 2019 04:17
@fehiepsi
Copy link
Contributor

fehiepsi commented Aug 2, 2019

cc @fritzo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: cuda Related to torch.cuda, and CUDA support in general module: docs Related to our documentation, both in docs/ and docblocks module: internals Related to internal abstractions in c10 and ATen module: tests Issues related to tests (not the torch.testing module) oncall: jit Add this issue/PR to JIT oncall triage queue open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants