mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[pytorch Aten] Delete unused duplicate clamp_stub, to avoid compile error (#154631)
I found the `clamp_stub` in `UnaryOps.h` is not used. And it's a duplicate of the `clamp_stub` in `TensorCompare.cpp`: https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/native/TensorCompare.cpp#L313-L314 This diff/PR deletes it as this duplicate caused build failure for me: ``` ATen/native/UnaryOps.h:109:1: error: redefinition of 'clamp_stub_DECLARE_DISPATCH_type' ``` Differential Revision: [D75612521](https://our.internmc.facebook.com/intern/diff/D75612521/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/154631 Approved by: https://github.com/Skylion007, https://github.com/cyyever, https://github.com/nautsimon ghstack dependencies: #154589, #154591
This commit is contained in:
@ -106,7 +106,6 @@ DECLARE_DISPATCH(void(*)(TensorIteratorBase&, std::optional<Generator>), random_
|
||||
|
||||
DECLARE_DISPATCH(void(*)(TensorIteratorBase&, const int64_t, const double), kaiser_window_stub)
|
||||
DECLARE_DISPATCH(void(*)(TensorIteratorBase&, const int64_t), polygamma_stub)
|
||||
DECLARE_DISPATCH(void(*)(TensorIteratorBase&, const Scalar& a, const Scalar& b), clamp_stub)
|
||||
DECLARE_DISPATCH(
|
||||
void (*)(Tensor&, const Tensor&, int64_t, std::optional<Generator>),
|
||||
multinomial_with_replacement_stub)
|
||||
|
Reference in New Issue
Block a user