Skip to content

Commit

Permalink
[Split] bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazhihao committed Oct 25, 2019
1 parent dbbbae2 commit 68b24d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/split.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Split::Split(Model* _model, const Tensor& _input,
} else {
outputs[i].dim[j] = _sizes[i];
outputs[i].stride[j] = inputs[0].stride[j];
if (i > 0) {
if (i > 0 && parent.num > 0) {
parent.divide(left, right, curPos);
} else {
curPos = 0;
Expand Down

0 comments on commit 68b24d3

Please sign in to comment.