Skip to content

fix: reborrow mel/mask as shared refs in MelSpectrogramConditioner pad - #111

Merged
lucasjinreal merged 1 commit into
lucasjinreal:mainfrom
Hahihula:fix/muscriptor-cat-mut-borrow
Aug 29, 2026
Merged

fix: reborrow mel/mask as shared refs in MelSpectrogramConditioner pad#111
lucasjinreal merged 1 commit into
lucasjinreal:mainfrom
Hahihula:fix/muscriptor-cat-mut-borrow

Conversation

@Hahihula

@Hahihula Hahihula commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

fix bug in musescriptor and duplicate in readme

Tensor::cat(&[mel, &pad_mel], 0) mixed &mut Tensor (from iter_mut())
with &Tensor in the same array literal, which does not type-check
under Rust's array coercion rules. main is currently broken as a
result. Reborrow with &* to get a plain &Tensor on both sides.
@lucasjinreal
lucasjinreal merged commit 29f735b into lucasjinreal:main Aug 29, 2026
4 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