From 41c9d2c092b8ea10f5798dbf6746d0449b341a57 Mon Sep 17 00:00:00 2001 From: tuna2134 Date: Tue, 10 Sep 2024 06:00:31 +0000 Subject: [PATCH] fixed --- sbv2_core/src/model.rs | 2 +- sbv2_core/src/utils.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sbv2_core/src/model.rs b/sbv2_core/src/model.rs index bb04127..715c313 100644 --- a/sbv2_core/src/model.rs +++ b/sbv2_core/src/model.rs @@ -19,7 +19,7 @@ pub fn synthesize( let outputs = session.run(ort::inputs! { "x_tst" => x_tst, "x_tst_lengths" => x_tst_lengths, - "sid" => array![0 as i64], + "sid" => array![0_i64], "tones" => tones, "language" => lang_ids, "bert" => bert, diff --git a/sbv2_core/src/utils.rs b/sbv2_core/src/utils.rs index 05f6c4c..d34548d 100644 --- a/sbv2_core/src/utils.rs +++ b/sbv2_core/src/utils.rs @@ -1,4 +1,3 @@ -use ndarray::{s, Array, Array2}; pub fn intersperse(slice: &[T], sep: T) -> Vec where