mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
[Quantization] run calib without grad
This commit is contained in:
parent
4ffd5655da
commit
6ca0d1f54c
@ -76,7 +76,8 @@ class ASRModelExportParaformer:
|
||||
feats, feats_len = self.load_feats(self.audio_in)
|
||||
for i, (feat, len) in enumerate(zip(feats, feats_len)):
|
||||
print("debug, iter: {}".format(i))
|
||||
m(feat, len)
|
||||
with torch.no_grad():
|
||||
m(feat, len)
|
||||
else:
|
||||
dummy_input = model.get_dummy_inputs()
|
||||
m(*dummy_input)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user