Convolution: Change element type in onnx unit tests with dyn shapes and convolution nodes
This commit is contained in:
@@ -14,7 +14,7 @@ graph {
|
||||
name: "data"
|
||||
type {
|
||||
tensor_type {
|
||||
elem_type: 7
|
||||
elem_type: 1
|
||||
shape {
|
||||
dim {
|
||||
dim_param: "batch"
|
||||
@@ -36,7 +36,7 @@ graph {
|
||||
name: "filters"
|
||||
type {
|
||||
tensor_type {
|
||||
elem_type: 7
|
||||
elem_type: 1
|
||||
shape {
|
||||
dim {
|
||||
dim_param: "feature maps"
|
||||
@@ -58,7 +58,7 @@ graph {
|
||||
name: "bias"
|
||||
type {
|
||||
tensor_type {
|
||||
elem_type: 7
|
||||
elem_type: 1
|
||||
shape {
|
||||
dim {
|
||||
dim_param: "bias"
|
||||
@@ -71,7 +71,7 @@ graph {
|
||||
name: "dyn_conv_out"
|
||||
type {
|
||||
tensor_type {
|
||||
elem_type: 7
|
||||
elem_type: 1
|
||||
shape {
|
||||
dim {
|
||||
dim_param: "batch"
|
||||
|
||||
@@ -302,12 +302,12 @@ NGRAPH_TEST(${BACKEND_NAME}, onnx_dyn_shapes_model_conv_with_dynamic_bias)
|
||||
const auto data_elems = shape_size(data_shape);
|
||||
const auto filters_elems = shape_size(filters_shape);
|
||||
|
||||
test_case.add_input(data_shape, std::vector<int64_t>(data_elems, 1));
|
||||
test_case.add_input(filters_shape, std::vector<int64_t>(filters_elems, 1));
|
||||
test_case.add_input(Shape{10}, std::vector<int64_t>(10, 1));
|
||||
test_case.add_input(data_shape, std::vector<float>(data_elems, 1));
|
||||
test_case.add_input(filters_shape, std::vector<float>(filters_elems, 1));
|
||||
test_case.add_input(Shape{10}, std::vector<float>(10, 1));
|
||||
|
||||
const auto expected_out_shape = Shape{1, 10, 6, 6};
|
||||
const std::vector<int64_t> expected_values(shape_size(expected_out_shape), 13);
|
||||
const std::vector<float> expected_values(shape_size(expected_out_shape), 13);
|
||||
test_case.add_expected_output(expected_out_shape, expected_values);
|
||||
|
||||
test_case.run();
|
||||
|
||||
Reference in New Issue
Block a user