Skip to content

Commit

Permalink
[TensorExpr] Fix lowering for aten::t. (#65859)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #65859

Test Plan: Imported from OSS

Reviewed By: VitalyFedyunin

Differential Revision: D31289347

Pulled By: ZolotukhinM

fbshipit-source-id: b9648416238657fe23366928e43ed63e992a8973
  • Loading branch information
Mikhail Zolotukhin authored and facebook-github-bot committed Oct 12, 2021
1 parent 6864146 commit 5f15186
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions test/test_jit_fuser_te.py
Expand Up @@ -2039,6 +2039,7 @@ def bn_neither(i, x):
'sqrt',
'sub',
'sum',
't',
'tan',
'tanh',
'transpose',
Expand All @@ -2058,9 +2059,6 @@ def bn_neither(i, x):

# If your OpInfo test causes this test to fail, add it here
skip_ops = [
# Causing SIGSEGV
# Reference: https://github.com/pytorch/pytorch/pull/59442/checks?check_run_id=2746156896
't',
'conj'
]

Expand Down
2 changes: 1 addition & 1 deletion torch/csrc/jit/tensorexpr/operators/misc.cpp
Expand Up @@ -344,7 +344,7 @@ Tensor computeTranspose(
at::Device device) {
auto A = c10::get<BufHandle>(inputs[0]);
// Trivial case of 0-dim and 1-dim tensors: transpose is just a copy
if (A.ndim() < 1) {
if (A.ndim() <= 1) {
return Compute(
"aten_transpose",
c10::fmap<DimArg>(outputShape),
Expand Down

0 comments on commit 5f15186

Please sign in to comment.