-
Notifications
You must be signed in to change notification settings - Fork 9
feat: 添加minicpm3模型缺失的算子 #16
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clippy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
ec21c79
to
7fa85f7
Compare
e754707
to
ab65dfa
Compare
pub dr: MaybeDyn<usize>, | ||
} | ||
|
||
impl<H: Hardware> Args<H> { |
Check warning
Code scanning / clippy
associated function new_null is never used Warning
|
||
impl<H: Hardware> Args<H> { | ||
#[allow(clippy::too_many_arguments)] | ||
pub(crate) fn new_null( |
Check warning
Code scanning / clippy
associated function new_null is never used Warning
use ndarray_layout::ArrayLayout; | ||
use std::marker::PhantomData; | ||
|
||
pub struct Operator<Hardware, MatMul, Softmax, Rearrange> { |
Check warning
Code scanning / clippy
field rearrange is never read Warning
pub struct Operator<Hardware, MatMul, Softmax, Rearrange> { | ||
mat_mul: MatMul, | ||
softmax: Softmax, | ||
rearrange: Rearrange, |
Check warning
Code scanning / clippy
field rearrange is never read Warning
|
||
fn scheme( | ||
&mut self, | ||
args: &Self::Args, |
Check warning
Code scanning / clippy
unused variable: args Warning
fn scheme( | ||
&mut self, | ||
args: &Self::Args, | ||
max_workspace_size: usize, |
Check warning
Code scanning / clippy
unused variable: max_workspace_size Warning
|
||
fn scheme( | ||
&mut self, | ||
args: &Self::Args, |
Check warning
Code scanning / clippy
unused variable: args Warning
fn scheme( | ||
&mut self, | ||
args: &Self::Args, | ||
max_workspace_size: usize, |
Check warning
Code scanning / clippy
unused variable: max_workspace_size Warning
dt, | ||
nh, | ||
seq, | ||
att, |
Check warning
Code scanning / clippy
unused variable: att Warning
seq, | ||
att, | ||
dkv, | ||
dv, |
Check warning
Code scanning / clippy
unused variable: dv Warning
mask, | ||
pos, | ||
} = args; | ||
let &[nh_skv, att_skv, dkv_skv] = kv_layout.strides() else { |
Check warning
Code scanning / clippy
unused variable: nh_skv Warning
let &[nh_skv, att_skv, dkv_skv] = kv_layout.strides() else { | ||
unreachable!() | ||
}; | ||
let &[nh_skr, att_skr, dr_skr] = kr_layout.strides() else { |
Check warning
Code scanning / clippy
unused variable: dr_skr Warning
let &[nh_skr, att_skr, dr_skr] = kr_layout.strides() else { | ||
unreachable!() | ||
}; | ||
let &[nh_sa, dv_sa, dkv_sa] = absorb_layout.strides() else { |
Check warning
Code scanning / clippy
unused variable: nh_sa Warning
let &[nh_skr, att_skr, dr_skr] = kr_layout.strides() else { | ||
unreachable!() | ||
}; | ||
let &[nh_sa, dv_sa, dkv_sa] = absorb_layout.strides() else { |
Check warning
Code scanning / clippy
unused variable: dv_sa Warning
let &[nh_skr, att_skr, dr_skr] = kr_layout.strides() else { | ||
unreachable!() | ||
}; | ||
let &[nh_sa, dv_sa, dkv_sa] = absorb_layout.strides() else { |
Check warning
Code scanning / clippy
unused variable: dkv_sa Warning
let &[nh_skrc, buf_skrc, dh_skrc] = kr_cache_layout.strides() else { | ||
unreachable!() | ||
}; | ||
let ele = dt.nbytes(); |
Check warning
Code scanning / clippy
unused variable: ele Warning
No description provided.