Conversation
Signed-off-by: Joe McCain III <jo3mccain@icloud.com>
v0.1.14 Dev
v0.1.14 Dev (2)
Signed-off-by: Joe McCain III <92560746+FL03@users.noreply.github.com>
| pub trait SummaryStatistics | ||
| where | ||
| Self::Item: FromPrimitive, | ||
| Self::Output: NumOps<Self::Item, Self::Output>, | ||
| { | ||
| type Item; | ||
| type Output; | ||
|
|
||
| fn elems(&self) -> Self::Item { | ||
| Self::Item::from_usize(self.len()).unwrap() | ||
| } | ||
|
|
||
| fn len(&self) -> usize; | ||
|
|
||
| fn mean(&self) -> Self::Output { | ||
| self.sum() / self.elems() | ||
| } | ||
|
|
||
| fn product(&self) -> Self::Output; | ||
|
|
||
| fn sum(&self) -> Self::Output; | ||
|
|
||
| fn std(&self) -> Self::Output; | ||
|
|
||
| fn var(&self) -> Self::Output; | ||
| } |
Check warning
Code scanning / clippy
trait `SummaryStatistics` has a `len` method but no (possibly inherited) `is_empty` method
| */ | ||
| pub use self::mask::*; | ||
|
|
||
| pub(crate) mod mask; |
Check warning
Code scanning / clippy
module has the same name as its containing module
| S: Data, | ||
| T: DataMut<Elem = A>, | ||
| { | ||
| data.zip_mut_with(&mut self.0, |x, &m| { |
Check warning
Code scanning / clippy
the method `zip_mut_with` doesn't need a mutable reference
|
|
||
| toggle!(enum C, R); | ||
|
|
||
| /// |
Check warning
Code scanning / clippy
empty doc comment
| self.plan().iter() | ||
| } | ||
|
|
||
| pub fn len(&self) -> usize { |
Check warning
Code scanning / clippy
struct `FftPlan` has a public `len` method, but no `is_empty` method
|
|
||
| fn masked_fill(&self, mask: &Array<bool, D>, value: A) -> Self::Output { | ||
| let mut arr = self.clone(); | ||
| arr.zip_mut_with(&mask, |x, &m| { |
Check warning
Code scanning / clippy
this expression creates a reference which is immediately dereferenced by the compiler
| pub trait SequenceIter { | ||
| type Item; | ||
|
|
||
| fn len(&self) -> usize; | ||
| } |
Check warning
Code scanning / clippy
trait `SequenceIter` has a `len` method but no (possibly inherited) `is_empty` method
Signed-off-by: Joe McCain III <92560746+FL03@users.noreply.github.com>
v0.1.14
This version aims to refine the original api prioritizing cleaner, more efficient designs while adding various modules, stores, and more.
Issues
LayerNorm) #62Dropoutfeature #64Initializetrait #71InitializeExt: extends theInitializetrait with methods corresponding to various distributions #72LecunNormal: a truncated normal distribution #73Pull Requests