@@ -1653,7 +1653,7 @@ bn_folding_t::desc_t bn_folding_t::create_desc(std::shared_ptr<op_t> &op,
1653
1653
add_post_ops.append_eltwise (algorithm::eltwise_sqrt, 0 .0f , 0 .0f );
1654
1654
1655
1655
primitive_attr add_attr;
1656
- add_attr.set_post_ops (std::move ( add_post_ops) );
1656
+ add_attr.set_post_ops (add_post_ops);
1657
1657
desc.add_pd_ = dnnl::binary::primitive_desc (p_engine, algorithm::binary_add,
1658
1658
variance, desc.epsilon_desc_ , variance, add_attr);
1659
1659
@@ -1689,7 +1689,7 @@ bn_folding_t::desc_t bn_folding_t::create_desc(std::shared_ptr<op_t> &op,
1689
1689
mul_post_ops.append_binary (algorithm::binary_div, desc.new_variance_desc_ );
1690
1690
1691
1691
primitive_attr mul_attr;
1692
- mul_attr.set_post_ops (std::move ( mul_post_ops) );
1692
+ mul_attr.set_post_ops (mul_post_ops);
1693
1693
desc.mul_pd_ = dnnl::binary::primitive_desc (p_engine, algorithm::binary_mul,
1694
1694
weights, desc.new_scale_desc_ , weights, mul_attr);
1695
1695
@@ -1707,7 +1707,7 @@ bn_folding_t::desc_t bn_folding_t::create_desc(std::shared_ptr<op_t> &op,
1707
1707
sub_post_ops.append_binary (algorithm::binary_add, shift);
1708
1708
1709
1709
primitive_attr sub_attr;
1710
- sub_attr.set_post_ops (std::move ( sub_post_ops) );
1710
+ sub_attr.set_post_ops (sub_post_ops);
1711
1711
desc.sub_pd_ = dnnl::binary::primitive_desc (p_engine, algorithm::binary_sub,
1712
1712
valid_bias, mean, valid_bias, sub_attr);
1713
1713
0 commit comments