Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rust] yukarin_s_forward を実装した #157

Merged

Conversation

PickledChair
Copy link
Member

内容

yukarin_s_forward を実装し、テストも書きました。とりあえず動きます。
onnxruntime-rsndarray と蜜結合した形で記述されていたため、素直に ndarray クレートを導入しました。
ndarray を使った経験がないため、もっと適切な書き方があるかどうかわからなかったのですが、とりあえず提出しました。

関連 Issue

#128

Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

onnxruntimeの扱いや、ndarrayの扱いに関して眺めてみました。
とくに意図と違った処理をしていそうな箇所はなかったです!

1点、rust周りの質問を書いてみました。

crates/voicevox_core/src/internal.rs Outdated Show resolved Hide resolved
crates/voicevox_core/src/internal.rs Outdated Show resolved Hide resolved
crates/voicevox_core/src/internal.rs Show resolved Hide resolved
crates/voicevox_core/src/internal.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@qwerty2501 qwerty2501 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hiroshiba Hiroshiba merged commit 9caeff4 into VOICEVOX:rust Jun 11, 2022
qwerty2501 pushed a commit to qwerty2501/voicevox_core that referenced this pull request Jul 23, 2022
* add yukarin_s_forward implementation

* use replace method

* use std::slice::from_raw_parts_mut

* change argument type of Internal::yukarin_s_forward

* fix to use proper speaker_id

* use assert_eq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants