Skip to content

Commit

Permalink
Adds TriangleTensor and CmpKernel traits to Device bound (#760)
Browse files Browse the repository at this point in the history
* Adds TriangleTensor bound to Device

* Adds CmpKernel bounds to Device
  • Loading branch information
coreylowman authored May 1, 2023
1 parent 66d79ce commit df57a67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tensor_ops/utilities/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ pub trait Device<E: Dtype>:
+ CopySlice<E>
+ crate::tensor::TensorFromVec<E>
+ crate::tensor::TensorFromVec<usize>
+ crate::tensor::TriangleTensor<E>

// appends
+ super::super::stack::StackKernel<E>
Expand Down Expand Up @@ -61,6 +62,12 @@ pub trait Device<E: Dtype>:

// boolean operations
+ super::super::boolean::BooleanKernel
+ super::super::cmp::CmpKernel<super::super::cmp::EqKernelOp, E>
+ super::super::cmp::CmpKernel<super::super::cmp::NeKernelOp, E>
+ super::super::cmp::CmpKernel<super::super::cmp::GtKernelOp, E>
+ super::super::cmp::CmpKernel<super::super::cmp::GeKernelOp, E>
+ super::super::cmp::CmpKernel<super::super::cmp::LtKernelOp, E>
+ super::super::cmp::CmpKernel<super::super::cmp::LeKernelOp, E>
+ super::super::cmp::ScalarCmpKernel<super::super::cmp::EqKernelOp, E>
+ super::super::cmp::ScalarCmpKernel<super::super::cmp::NeKernelOp, E>
+ super::super::cmp::ScalarCmpKernel<super::super::cmp::GtKernelOp, E>
Expand Down

0 comments on commit df57a67

Please sign in to comment.