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,6 +76,7 @@ class ASRModelExportParaformer:
|
|||||||
feats, feats_len = self.load_feats(self.audio_in)
|
feats, feats_len = self.load_feats(self.audio_in)
|
||||||
for i, (feat, len) in enumerate(zip(feats, feats_len)):
|
for i, (feat, len) in enumerate(zip(feats, feats_len)):
|
||||||
print("debug, iter: {}".format(i))
|
print("debug, iter: {}".format(i))
|
||||||
|
with torch.no_grad():
|
||||||
m(feat, len)
|
m(feat, len)
|
||||||
else:
|
else:
|
||||||
dummy_input = model.get_dummy_inputs()
|
dummy_input = model.get_dummy_inputs()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user