Skip to content
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

dnn: add more CANN operators to support SAM #23550

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
fix number of Split outputs
  • Loading branch information
fengyuentau committed Apr 28, 2023
commit 11cfffdccfdfd38039f8324681704e76e9126076
2 changes: 1 addition & 1 deletion modules/dnn/src/layers/slice_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ class SliceLayerImpl : public SliceLayer
auto op = std::make_shared<ge::op::SplitV>(name);

// set attr
int n_split = static_cast<int>(sliceRanges[0].size());
int n_split = static_cast<int>(outputs.size());
op->set_attr_num_split(n_split);

// set inputs
Expand Down