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

入力テンソルをvisitor patternで捌く #680

Merged
merged 3 commits into from
Nov 17, 2023

Conversation

qryxip
Copy link
Member

@qryxip qryxip commented Nov 16, 2023

内容

FIXMEを一つ解消します。

文脈: #675 (comment)

関連 Issue

#545

その他

@qryxip qryxip mentioned this pull request Nov 16, 2023
69 tasks
Comment on lines +110 to +113
pub(crate) trait PushInputTensor {
fn push_int64(&mut self, tensor: Array<i64, impl Dimension + 'static>);
fn push_float32(&mut self, tensor: Array<f32, impl Dimension + 'static>);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

補足: これはenum OutputTensorと対になる感じかと思います。

enum InputTensor { Int64(_), Float32(_) }というのも考えたのですが、経路を遠くしてまで統一性を出す必要は無いかなと思い、この形にしました。

@qryxip
Copy link
Member Author

qryxip commented Nov 16, 2023

  • 92b981a Merge branch 'main' into HEAD
  • e181f14 返り値が()の関数ボディに;が無かったので付けました (付けるのが慣習的で、例えばRustfmtはreturnbreakについて;を付けることを要求する)

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!!!

正直ちょっとわかってないのですが、良い感じなのかなと・・・!!

@Hiroshiba Hiroshiba merged commit 3c9b09d into VOICEVOX:main Nov 17, 2023
31 checks passed
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