Skip to content

Commit

Permalink
build: fix -Wunused-function warning
Browse files Browse the repository at this point in the history
build/aten/src/ATen/xpu/RegisterXPU.cpp:5452:13: warning: ‘void at::xpu_force_fallback(const c10::OperatorHandle&, torch::jit::Stack*)’ defined but not used

Signed-off-by: Dmitry Rogozhkin <[email protected]>
  • Loading branch information
dvrogozh committed Jul 9, 2024
1 parent 4db0b0c commit 9f8bffb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ATen/native/xpu/XPUFallback.template
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ static void xpu_lazy_registration_or_error_fallback(
}
}

static void xpu_force_fallback(
const c10::OperatorHandle& op,
torch::jit::Stack* stack) {}

TORCH_LIBRARY_IMPL(_, XPU, m) {
static const char* enable_xpu_fallback =
getenv("PYTORCH_ENABLE_XPU_FALLBACK");
Expand Down

0 comments on commit 9f8bffb

Please sign in to comment.