Lint and fix undefined names (3/N) (#6030)

This commit is contained in:
Chenlei Hu
2024-12-12 15:49:40 -08:00
committed by GitHub
parent d4426dce7c
commit 60749f345d
4 changed files with 4 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ def get_activation(activation: Literal["elu", "snake", "none"], antialias=False,
raise ValueError(f"Unknown activation {activation}")
if antialias:
act = Activation1d(act)
act = Activation1d(act) # noqa: F821 Activation1d is not defined
return act