Skip to content

Commit

Permalink
tests: unit: dnnl: initialize local variables
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoLv committed Apr 28, 2022
1 parent cbdb736 commit ae5686b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/cpp/unit/backend/dnnl/test_compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13349,9 +13349,9 @@ TEST(ExecuteSubgraphInt8, PoolAdd) {

for_(const auto swap_add_in : swap_add_ins)
for (const auto &conf : confs) {
impl::op_kind_t base_op;
impl::op_kind_t base_op = impl::op_kind::Wildcard;
std::string fuse_name;
bool per_channel_broadcast;
bool per_channel_broadcast = false;
std::tie(base_op, fuse_name, per_channel_broadcast) = conf;

const std::string data_format {"NCX"};
Expand Down
4 changes: 2 additions & 2 deletions tests/cpp/unit/backend/dnnl/test_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7430,8 +7430,8 @@ TEST(Pass, FuseToInt8PoolAdd) {
"int8_maxpool_fusion", "int8_maxpool_add_fusion"}};

for (const auto &conf : confs) {
op_kind_t base_op;
op_kind_t fused_op;
op_kind_t base_op = op_kind::Wildcard;
op_kind_t fused_op = op_kind::Wildcard;
std::string failing_fuse;
std::string passing_fuse;
std::tie(base_op, fused_op, failing_fuse, passing_fuse) = conf;
Expand Down

0 comments on commit ae5686b

Please sign in to comment.