-
Notifications
You must be signed in to change notification settings - Fork 504
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
Full codegen for logdet
#3576
Full codegen for logdet
#3576
Conversation
…77904) Summary: Fixes pytorch/xla#3576 Added support for `slogdet` in LazyTensor shape inference Pull Request resolved: #77904 Approved by: https://github.com/wconstab, https://github.com/JackCaoG Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/e67284d9ee1f9c8dbb14169c69c71d035014e38b Reviewed By: seemethere Differential Revision: D36537815 Pulled By: seemethere fbshipit-source-id: a594bcabdedbdd6e077fbd17c9c6049c4b12b82d
As discussed in #3596, |
torch_xla/csrc/aten_xla_type.cpp
Outdated
std::tuple<at::Tensor, at::Tensor> XLANativeFunctions::slogdet( | ||
const at::Tensor& self) { | ||
XLA_FN_COUNTER("xla::"); | ||
XLATensor self_tensor = bridge::GetXlaTensor(self); | ||
auto outputs = XLATensor::slogdet(self_tensor); | ||
return std::make_tuple(bridge::AtenFromXlaTensor(std::get<0>(outputs)), | ||
bridge::AtenFromXlaTensor(std::get<1>(outputs))); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: maybe should we move this back to the original place so this PR doesn't show slogdet
as being modified?
@miladm Thanks! One thing -- this PR is showing it changed tensorflow version and was wondering why? nit: can we also change the PR title to remove |
This PR should be in a good shape now. Build passed. First test passed. Will merge after the second test passes. |
Full codegen for
logdet
,slogdet
SLogDet
compilation is blocked on PyTorch shape inference landing in torch/csrc/lazy/core/shape_inference.hslogdet
in LazyTensor shape inference pytorch#77904SLogDet
compilation is blocked on upstream codegen issuesslogdet
) #3596Generate
LazyIr.h
Generated
XLANativeFunctions.cpp
: