From bba927242329f67557ad6a76573f38c9927fbf6e Mon Sep 17 00:00:00 2001 From: Tai An Date: Tue, 8 Sep 2026 21:26:24 -0700 Subject: [PATCH] fix(scripts/nemo/qnn/parakeet-ctc): bind feat_dim before use main() printed and used feat_dim without defining it, so running the script always raised NameError before exporting anything. The sibling scripts/nemo/qnn/nemotron-3.5-asr-streaming-0.6b/wrapper.py reads it from asr_model.cfg.preprocessor.features; do the same here. --- scripts/nemo/qnn/parakeet-ctc/wrapper.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/nemo/qnn/parakeet-ctc/wrapper.py b/scripts/nemo/qnn/parakeet-ctc/wrapper.py index 2b9c54c239..02c03ccbc3 100755 --- a/scripts/nemo/qnn/parakeet-ctc/wrapper.py +++ b/scripts/nemo/qnn/parakeet-ctc/wrapper.py @@ -64,6 +64,8 @@ def main(): m = ModelWrapper(asr_model) m.eval() + feat_dim = asr_model.cfg.preprocessor.features + print("feat_dim", feat_dim) x = torch.rand(1, feat_dim, args.max_len, dtype=torch.float32)