Skip to content

chore: run ruff check --fix - #23

Closed
theHamsta wants to merge 4 commits into
rustnn:mainfrom
theHamsta:ruff-fix
Closed

theHamsta wants to merge 4 commits into
rustnn:mainfrom
theHamsta:ruff-fix

Conversation

@theHamsta

Copy link
Copy Markdown
Contributor

Automated fixed using

  • ruff check --fix
  • ruff check --fix --unsafe-fixes

Also, add ruff to CI.

Comment thread tests/wpt_utils.py Outdated

if isinstance(data, (int, float)):
total_elements = math.prod(shape) if shape else 1
math.prod(shape) if shape else 1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

those do commands don't seem to do anything. Deleting manually

V = builder.matmul(x_input, W_v) # (seq_len, d_model)

# Compute attention scores for last position
# scores = Q[-1] @ K^T (simplified to use reduce_mean for demo)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

why commented out? 🤔

@theHamsta theHamsta closed this Oct 21, 2026
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.

1 participant