Skip to content

Fuse gather #2793

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

Merged
merged 3 commits into from
Feb 11, 2025
Merged

Fuse gather #2793

merged 3 commits into from
Feb 11, 2025

Conversation

nathanielsimard
Copy link
Member

Added indexed tensor ids to keep track of tensors that can't be accessed using the same vectorization factor as other fused operations.

Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 33.77926% with 396 lines in your changes missing coverage. Please review.

Project coverage is 83.42%. Comparing base (0ee5ca9) to head (34fdfff).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crates/burn-jit/src/fusion/on_write/io.rs 23.38% 213 Missing ⚠️
crates/burn-jit/src/fusion/on_write/kernel.rs 7.32% 177 Missing ⚠️
...ates/burn-jit/src/fusion/on_write/trace/builder.rs 89.58% 5 Missing ⚠️
...urn-jit/src/fusion/on_write/trace/vectorization.rs 96.29% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2793      +/-   ##
==========================================
- Coverage   83.67%   83.42%   -0.26%     
==========================================
  Files         832      832              
  Lines      109524   110016     +492     
==========================================
+ Hits        91643    91779     +136     
- Misses      17881    18237     +356     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@laggui laggui left a comment

Choose a reason for hiding this comment

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

LGTM!

Just a minor comment

Comment on lines +646 to +654
ElemwisePrecision::Bool => get_offset(
inputs,
outputs,
inputs.t_u32.index(pos), // TODO
index,
range,
config,
None,
),
Copy link
Member

@laggui laggui Feb 11, 2025

Choose a reason for hiding this comment

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

Leave it as todo!() instead? Or match the bool dtype?

@nathanielsimard nathanielsimard merged commit 6755f14 into main Feb 11, 2025
11 checks passed
@nathanielsimard nathanielsimard deleted the feat/fuse-gather branch February 11, 2025 17:28
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