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

Commit

Permalink
Simplify comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekkuncer committed Oct 19, 2021
1 parent 3d3cc0e commit 9a1a818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operator/subgraph/dnnl/dnnl_post_quantize_property.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class SgDNNLPostQuantizeSelector : public SubgraphSelector {

bool Select(const nnvm::Node& n) override {
if (n.op() && support_requantize_fusion_op_name.count(n.op()->name)) {
if (n.op()->name == "_sg_onednn_conv" || n.op()->name == "_sg_mkldnn_conv") {
if (n.op() == Op::Get("_sg_onednn_conv")) {
auto const& param = nnvm::get<DNNLConvFusionParam>(n.attrs.parsed);
if (param.full_conv_param.dnnl_param.quantized) {
status = kStart;
Expand Down

0 comments on commit 9a1a818

Please sign in to comment.