Skip to content

Commit 43f9e9a

Browse files
committed
update
1 parent 59fa786 commit 43f9e9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cosyvoice/utils/file_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
# limitations under the License.
1515

1616
import json
17-
import tensorrt as trt
1817
import torchaudio
1918
import logging
2019
logging.getLogger('matplotlib').setLevel(logging.WARNING)
@@ -49,6 +48,7 @@ def load_wav(wav, target_sr):
4948

5049

5150
def convert_onnx_to_trt(trt_model, onnx_model, fp16):
51+
import tensorrt as trt
5252
_min_shape = [(2, 80, 4), (2, 1, 4), (2, 80, 4), (2,), (2, 80), (2, 80, 4)]
5353
_opt_shape = [(2, 80, 193), (2, 1, 193), (2, 80, 193), (2,), (2, 80), (2, 80, 193)]
5454
_max_shape = [(2, 80, 6800), (2, 1, 6800), (2, 80, 6800), (2,), (2, 80), (2, 80, 6800)]

0 commit comments

Comments
 (0)