From 4c8c27c11add83c8869d6dd8f2599ec40c6df776 Mon Sep 17 00:00:00 2001 From: yesMohanHere Date: Sat, 18 Jul 2026 00:23:27 +0530 Subject: [PATCH] Suppress pyright redefinition error on legacy amp fallback import --- nerfstudio/field_components/activations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nerfstudio/field_components/activations.py b/nerfstudio/field_components/activations.py index b8edebc7f..29afaf1f0 100644 --- a/nerfstudio/field_components/activations.py +++ b/nerfstudio/field_components/activations.py @@ -33,7 +33,7 @@ try: custom_bwd = _custom_bwd(device_type="cuda") except ImportError: # torch < 2.4: custom_fwd/custom_bwd live in torch.cuda.amp (no device_type argument) - from torch.cuda.amp import custom_bwd, custom_fwd + from torch.cuda.amp import custom_bwd, custom_fwd # type: ignore class _TruncExp(Function):