[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:
FFFrog
2025-08-30 18:10:46 +08:00
committed by PyTorch MergeBot
parent 37da7b777b
commit dad2e50ac5

View File

@ -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 '",