-
Notifications
You must be signed in to change notification settings - Fork 446
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
Tensor type indent fix #2196
Tensor type indent fix #2196
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2196 +/- ##
==========================================
+ Coverage 86.04% 86.08% +0.03%
==========================================
Files 695 695
Lines 88882 89002 +120
==========================================
+ Hits 76480 76618 +138
+ Misses 12402 12384 -18 ☔ View full report in Codecov by Sentry. |
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.
LGTM other than the pad related changes from #2195
fn get_input_values(node: &Node, index: usize) -> Vec<i64> { | ||
// If the input is not provided, return an empty vector | ||
if node.inputs.get(index).is_none() { | ||
return Vec::new(); | ||
} | ||
|
||
match &node.inputs[index].value { | ||
Some(Data::Int64s(shape)) => shape.clone(), | ||
_ => panic!("Tensor data type must be int64"), | ||
} | ||
} |
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.
Did you intend to include pad related changes? I see you have #2195 open. Perhaps, this is based on that branch and that's why these changes appear?
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.
Yeah, I had to make the pad related changes in order to test the user model.
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.
Thanks for the fix 🙂
Changes for the type ident look good to me! But we should remove the pad changes from this PR before merging (especially since the pad PR needs some minor adjustments).
Pull Request Template
Checklist
run-checks all
script has been executed.Related Issues/PRs
#2151
#2115
Dependant on #2195
Changes
If a TensorType name is a number, adding _ in front to make it a valid Ident for proc_macro2
Testing
Ran user model mentionned in #2151