Skip to content

Commit 4476b5e

Browse files
optmancoreylowman
andauthored
make device capable of stacking and concatenating usize type, which are necessary for preparing tensors for embedding (#882)
Co-authored-by: Corey Lowman <[email protected]>
1 parent 53469e9 commit 4476b5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

dfdx-core/src/tensor_ops/utilities/device.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ pub trait Device<E: Dtype>:
1515

1616
// appends
1717
+ super::super::stack::StackKernel<E>
18+
+ super::super::stack::StackKernel<usize>
1819
+ super::super::concat::ConcatKernel<E>
20+
+ super::super::concat::ConcatKernel<usize>
1921
+ super::super::concat_along::ConcatAlongKernel<E>
22+
+ super::super::concat_along::ConcatAlongKernel<usize>
2023

2124
// optimizers
2225
+ super::super::adam::AdamKernel<E>

0 commit comments

Comments
 (0)