Skip to content

Commit 9522439

Browse files
committedNov 27, 2024·
Add unsafe blocks for edition 2024
1 parent 13ef3fa commit 9522439

File tree

119 files changed

+588
-663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+588
-663
lines changed
 

‎examples/custom_module.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use custos::{
2-
Alloc, Base, Device, HasId, IsBasePtr, Module, Parents, PtrType, Retrieve, Setup, Shape, Unit,
3-
WrappedData, CPU,
2+
Alloc, Base, CPU, Device, HasId, IsBasePtr, Module, Parents, PtrType, Retrieve, Setup, Shape,
3+
Unit, WrappedData,
44
};
55

66
pub struct CustomModule<Mods> {

‎examples/lazy_and_fusing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn main() {
1111

1212
// this identifies redundant intermediate buffers and skips allocating them
1313
device.optimize_mem_graph(&device, None).unwrap(); // allocates, now out1 data points to out2 data. The data is accessed with out2.replace()
14-
// this fuses all unary operations and creates fused compute kernels (for all compute kernel based devices)
14+
// this fuses all unary operations and creates fused compute kernels (for all compute kernel based devices)
1515
device.unary_fusing(&device, None).unwrap();
1616

1717
// this executes all operations inside the lazy graph

0 commit comments

Comments
 (0)
Please sign in to comment.