Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhennanQin committed Dec 20, 2018
1 parent f3a2dd2 commit 1f68848
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/operator/quantization/quantize_graph_pass.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Graph QuantizeGraph(Graph &&src) {
static const auto& need_requantize_map = Op::GetAttr<mxnet::FNeedRequantize>("FNeedRequantize");
static const auto& avoid_quantize_input_map =
Op::GetAttr<mxnet::FAvoidQuantizeInput>("FAvoidQuantizeInput");
const auto offline_params = src.GetAttr<std::unordered_set<std::string>>("offline_params");
auto offline_params = src.GetAttr<std::unordered_set<std::string>>("offline_params");
const auto excluded_nodes = src.GetAttr<std::unordered_set<std::string>>("excluded_nodes");
const auto quantized_dtype = src.GetAttr<std::string>("quantized_dtype");

Expand Down Expand Up @@ -312,7 +312,8 @@ Graph QuantizeGraph(Graph &&src) {
}
}

if (!offline_params.empty()) outputs = OfflineParams(std::move(outputs), offline_params);
if (!offline_params.empty()) outputs =
OfflineParams(std::move(outputs), std::move(offline_params));

Graph ret;
ret.outputs = std::move(outputs);
Expand Down

0 comments on commit 1f68848

Please sign in to comment.