Skip to content

Commit

Permalink
method in trait
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Sep 25, 2024
1 parent 7bdf9aa commit a12a73d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions linalg/src/frame/mmm/kernel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ impl<const MR: usize, const NR: usize, Acc: LADatum> DynKernel<MR, NR, Acc> {
Box::new(self.clone())
}

pub fn is_supported_here(&self) -> bool {
(self.supported_predicate)()
}
}

impl<const MR: usize, const NR: usize, Acc: LADatum> Debug for DynKernel<MR, NR, Acc> {
Expand All @@ -114,6 +111,10 @@ impl<const MR: usize, const NR: usize, Acc: LADatum> MatMatMulKer for DynKernel<
NR
}

fn is_supported_here(&self) -> bool {
(self.supported_predicate)()
}

fn can_fuse(&self, spec: &FusedSpec) -> bool {
(self.can_fuse)(spec)
}
Expand Down

0 comments on commit a12a73d

Please sign in to comment.