Skip to content

Commit

Permalink
Add more error checking
Browse files Browse the repository at this point in the history
  • Loading branch information
lrw04 committed Sep 5, 2023
1 parent a273057 commit f489d44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layer/linearint8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ int LinearInt8::load_param(const ParamDict& pd)
in_dim = pd.get(0, 0);
out_dim = pd.get(1, 0);
group_size = pd.get(2, 1);
if (in_dim * out_dim % group_size)
return -1;
return 0;
}

Expand Down

0 comments on commit f489d44

Please sign in to comment.