Skip to content

Fix: float64 error when enbling word_timestamps on mac with mps#2704

Open
insight-laboratories wants to merge 2 commits into
openai:mainfrom
insight-laboratories:fix-mps-support-word-timestamps
Open

Fix: float64 error when enbling word_timestamps on mac with mps#2704
insight-laboratories wants to merge 2 commits into
openai:mainfrom
insight-laboratories:fix-mps-support-word-timestamps

Conversation

@insight-laboratories

Copy link
Copy Markdown

Enabling wordtimestamps on mac with mps resulted in an error in the dtw function, as it tries to cast a torch.Tensor to a double (float64), which is not supported by mps. The fix consists in calling .cpu() on the torch.Tensor before casting it to a double instead of after.

…the dtw function, as it tries to cast a torch.Tensor to a double (float64), which is not supported by mps. The fix consists in calling .cpu() on the torch.Tensor before casting it to a double instead of after.
@EmrecanKaracayir

Copy link
Copy Markdown

Any update on this?

@insight-laboratories

Copy link
Copy Markdown
Author

Any update on this?

running it for months on mps now without any problems: this fork

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.

2 participants