Skip to content

Commit

Permalink
Fix arange call with latest MLX.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasnewman committed Jan 9, 2025
1 parent 9541e7c commit e0bae96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion f5_tts_mlx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def lens_to_mask(
length: int | None = None,
) -> mx.array: # Bool['b n']
if not exists(length):
length = t.max()
length = t.max().item()

seq = mx.arange(length)
return einx.less("n, b -> b n", seq, t)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "f5-tts-mlx"
version = "0.2.3"
version = "0.2.4"
authors = [{name = "Lucas Newman", email = "lucasnewman@me.com"}]
license = {text = "MIT"}
description = "F5-TTS - MLX"
Expand Down

0 comments on commit e0bae96

Please sign in to comment.