Skip to content

Commit

Permalink
remove LegacyDefinitions as it is empty now (#51251)
Browse files Browse the repository at this point in the history
Summary:
Per title

Pull Request resolved: #51251

Reviewed By: mruberry

Differential Revision: D26120574

Pulled By: ngimel

fbshipit-source-id: 223b4f358932f47e0af7413752c7db7c35402260
  • Loading branch information
ngimel authored and facebook-github-bot committed Jan 30, 2021
1 parent d5541c5 commit 7d30f67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
1 change: 0 additions & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ filegroup(
"aten/src/ATen/cudnn/Handle.cpp",
"aten/src/ATen/cudnn/Types.cpp",
"aten/src/ATen/native/cuda/CUDAUnaryOps.cpp",
"aten/src/ATen/native/cuda/LegacyDefinitions.cpp",
"aten/src/ATen/native/cuda/TensorShapeCUDA.cpp",
"aten/src/ATen/native/cudnn/AffineGridGenerator.cpp",
"aten/src/ATen/native/cudnn/BatchNorm.cpp",
Expand Down
16 changes: 0 additions & 16 deletions aten/src/ATen/native/LegacyDefinitions.cpp

This file was deleted.

5 changes: 5 additions & 0 deletions aten/src/ATen/native/Sorting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,5 +721,10 @@ Tensor msort(const Tensor& self) {
return std::get<0>(at::sort(self, 0, false));
}

Tensor argsort(const Tensor & self, int64_t dim, bool descending) {
return std::get<1>(at::sort(self, dim, descending));
}


} // namespace native
} // namespace at

0 comments on commit 7d30f67

Please sign in to comment.