Skip to content

Commit

Permalink
Add empty/empty_like to core aten decomps (pytorch#105158)
Browse files Browse the repository at this point in the history
Fixes pytorch#104871

Pull Request resolved: pytorch#105158
Approved by: https://github.com/SherlockNoMad
  • Loading branch information
williamwen42 authored and pytorchmergebot committed Jul 15, 2023
1 parent 1152e86 commit 5cd861f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions test/expect/HasDecompTest.test_aten_core_operators.expect
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ aten::div_.Tensor
aten::div_.Tensor_mode
aten::embedding
aten::embedding.out
aten::empty_like
aten::empty_like.out
aten::empty_strided
aten::empty_strided.out
aten::eq.Scalar
Expand Down
1 change: 1 addition & 0 deletions torch/_decomp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ def core_aten_decompositions() -> Dict[OpOverload, Callable]:
aten.elu_backward,
aten._embedding_bag,
aten.embedding_dense_backward,
aten.empty_like,
aten._euclidean_dist.default,
aten.expand_as,
aten.eye,
Expand Down

0 comments on commit 5cd861f

Please sign in to comment.