-
Notifications
You must be signed in to change notification settings - Fork 474
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
Refactor/burn compute #1580
Refactor/burn compute #1580
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few typos. Also as discussed let's rename server buf handles to bindings
crates/burn-compute/src/id.rs
Outdated
@@ -25,26 +33,134 @@ macro_rules! storage_id_type { | |||
}; | |||
} | |||
|
|||
/// Reference to buffer handles, to be holded by a tensor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
held
crates/burn-compute/src/id.rs
Outdated
all: Arc<()>, | ||
} | ||
|
||
/// Reference to buffer handles, to be holded by anything else than tensors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
held
crates/burn-compute/src/id.rs
Outdated
#[macro_export(local_inner_macros)] | ||
/// Create a new memory ID type. | ||
/// Create a new memory ID types. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why you added plural, but you should at least remove the "a"
storage: StorageHandle, | ||
handle: SliceTensorBufHandle, | ||
// It is important to keep the chunk handle inside the slice, since it increases the ref count | ||
// on the chunk id and make the `is_free` method returns false until the slice is freed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes the is_free
method return
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1580 +/- ##
==========================================
+ Coverage 86.42% 86.44% +0.01%
==========================================
Files 694 696 +2
Lines 80687 80960 +273
==========================================
+ Hits 69731 69982 +251
- Misses 10956 10978 +22 ☔ View full report in Codecov by Sentry. |
Instead of a single handle we now have: