Commit 120109d0 authored by wsttiger's avatar wsttiger
Browse files

Fixed CPPCHECK

parent 224cb7cf
...@@ -312,7 +312,7 @@ struct cpu_concat ...@@ -312,7 +312,7 @@ struct cpu_concat
auto slice_shape = auto slice_shape =
shape{output_shape.type(), input.get_shape().lens(), output_shape.strides()}; shape{output_shape.type(), input.get_shape().lens(), output_shape.strides()};
auto slice = make_view(slice_shape, output.data() + coffsets[l]); auto slice = make_view(slice_shape, output.data() + coffsets[l]);
for(std::size_t i = 0; i < nelements; i++) for(std::size_t i = 0; i < nelements; i++) // NOLINT
{ {
slice[i] = input[i]; slice[i] = input[i];
} }
......
...@@ -38,7 +38,7 @@ void fwd_conv_batchnorm_rewrite_test() ...@@ -38,7 +38,7 @@ void fwd_conv_batchnorm_rewrite_test()
migraph::program p; migraph::program p;
auto x = p.add_literal(xs, xdata); auto x = p.add_literal(xs, xdata);
auto w = p.add_literal(ws, wdata); auto w = p.add_literal(ws, wdata);
auto conv = p.add_instruction(migraph::op::convolution{{0, 0}, {1, 1}, {1, 1}}, x, w); auto conv = p.add_instruction(migraph::op::convolution{{{0, 0}}, {{1, 1}}, {{1, 1}}}, x, w);
auto scale = p.add_literal(migraph::literal{vars, {3.0f}}); auto scale = p.add_literal(migraph::literal{vars, {3.0f}});
auto bias = p.add_literal(migraph::literal{vars, {8.1f}}); auto bias = p.add_literal(migraph::literal{vars, {8.1f}});
auto mean = p.add_literal(migraph::literal{vars, {4.0f}}); auto mean = p.add_literal(migraph::literal{vars, {4.0f}});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment