Commit cc91eecf authored by nishant.b.patel's avatar nishant.b.patel

Fix compiliation errors in onnx importer

parent 5f1a0679
...@@ -48,11 +48,11 @@ namespace ngraph ...@@ -48,11 +48,11 @@ namespace ngraph
const auto& padding_below = paddings.first; const auto& padding_below = paddings.first;
const auto& padding_above = paddings.second; const auto& padding_above = paddings.second;
const Strides default_data_dilation_strides(input->get_shape().size() - 2, 1); const Strides default_data_dilation_strides(input->get_shape().size() - 2, 1);
auto scale_one = make_constant(element::f32, Shape{}, 1); auto scale_one = make_constant(ngraph::element::f32, Shape{}, 1);
auto input_zero_point = make_constant(input->get_element_type(), Shape{}, 0); auto input_zero_point = make_constant(input->get_element_type(), Shape{}, 0);
auto filters_zero_point = auto filters_zero_point =
make_constant(filters->get_element_type(), Shape{}, 0); make_constant(filters->get_element_type(), Shape{}, 0);
auto output_zero_point = make_constant(output->get_element_type(), Shape{}, 0); auto output_zero_point = make_constant(ngraph::element::i32, Shape{}, 0);
if (num_inputs == 2) if (num_inputs == 2)
{ {
......
...@@ -258,11 +258,7 @@ namespace ngraph ...@@ -258,11 +258,7 @@ namespace ngraph
data_dilations, data_dilations,
groups, groups,
OpScale{data_scale, filters_scale, output_scale}, OpScale{data_scale, filters_scale, output_scale},
OpZeroPoint{data_zero_point, filters_zero_point, output_zero_point}, OpZeroPoint{data_zero_point, filters_zero_point, output_zero_point});
output_type,
ngraph::AxisSet{},
ngraph::AxisSet{},
ngraph::AxisSet{});
} }
return {conv_node}; return {conv_node};
......
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