-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
V0.1.14 #61
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 Warning
*/ | ||
pub use self::mask::*; | ||
|
||
pub(crate) mod mask; |
Check warning
Code scanning / clippy
module has the same name as its containing module Warning
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 Warning
|
||
toggle!(enum C, R); | ||
|
||
/// |
Check warning
Code scanning / clippy
empty doc comment Warning
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 Warning
|
||
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 Warning
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 Warning
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
) #62Dropout
feature #64Initialize
trait #71InitializeExt
: extends theInitialize
trait with methods corresponding to various distributions #72LecunNormal
: a truncated normal distribution #73Pull Requests