mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[OpenReg] Rename cpu_fallback_blacklist to cpu_fallback_blocklist (#161603)
As the title stated. Related Infos: https://github.com/pytorch/pytorch/pull/158644#discussion_r2301460839 Pull Request resolved: https://github.com/pytorch/pytorch/pull/161603 Approved by: https://github.com/albanD
This commit is contained in:
@ -164,13 +164,13 @@ at::Tensor view(const at::Tensor& self, c10::SymIntArrayRef size) {
|
||||
|
||||
// LITERALINCLUDE START: FALLBACK IMPL
|
||||
void cpu_fallback(const c10::OperatorHandle& op, torch::jit::Stack* stack) {
|
||||
static const std::unordered_set<c10::OperatorName> cpu_fallback_blacklist = {
|
||||
static const std::unordered_set<c10::OperatorName> cpu_fallback_blocklist = {
|
||||
c10::OperatorName("aten::abs", ""),
|
||||
c10::OperatorName("aten::abs", "out"),
|
||||
};
|
||||
|
||||
const auto& op_name = op.schema().operator_name();
|
||||
if (cpu_fallback_blacklist.count(op_name)) {
|
||||
if (cpu_fallback_blocklist.count(op_name)) {
|
||||
TORCH_CHECK(
|
||||
false,
|
||||
"Operator '",
|
||||
|
Reference in New Issue
Block a user