Skip to content

Commit

Permalink
Remove unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Jun 14, 2019
1 parent 5665e16 commit 198d622
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions tools/onnx2bnn/OnnxConverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ using std::unique_ptr;
using std::vector;
using Shape = Shaper::Shape;

bool is_binary_weight(const float *data, Shape shape);

std::string OnnxConverter::m(const std::string &str) {
if (name_map_.find(str) != name_map_.end()) {
return name_map_[str];
Expand Down Expand Up @@ -124,15 +122,6 @@ void OnnxConverter::AddConv(const string &input_name,
}
}

bool is_binary_weight(const float *data, Shape shape) {
FORZ(i, Shaper::total(shape)) {
if (data[i] != -1 && data[i] != 1) {
return false;
}
}
return true;
}

/*
* Bitpack a bnn tensor, input_channels should be the last dimension
*/
Expand Down

0 comments on commit 198d622

Please sign in to comment.