Unverified Commit 877fb219 authored by Scott Cyphers's avatar Scott Cyphers Committed by GitHub

Merge pull request #3134 from NervanaSystems/arogowiec/int_backend_fail

Failing test on INTERPRETER backend.
parents 4f19df0d d345d9df
...@@ -203,7 +203,8 @@ shared_ptr<Node> op::GroupConvolutionTranspose::copy_with_new_args(const NodeVec ...@@ -203,7 +203,8 @@ shared_ptr<Node> op::GroupConvolutionTranspose::copy_with_new_args(const NodeVec
get_padding_end(), get_padding_end(),
get_output_padding(), get_output_padding(),
get_groups(), get_groups(),
get_pad_type()); get_pad_type(),
get_output_shape());
} }
Shape op::GroupConvolutionTranspose::get_data_batch_shape() const Shape op::GroupConvolutionTranspose::get_data_batch_shape() const
......
ir_version: 3
producer_name: "backend-test"
graph {
node {
input: "X"
input: "W"
output: "Y"
op_type: "ConvTranspose"
attribute {
name: "output_shape"
ints: 10
ints: 8
type: INTS
}
attribute {
name: "strides"
ints: 3
ints: 2
type: INTS
}
}
name: "test_convtranspose_output_shape"
input {
name: "X"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
dim {
dim_value: 1
}
dim {
dim_value: 3
}
dim {
dim_value: 3
}
}
}
}
}
input {
name: "W"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
dim {
dim_value: 2
}
dim {
dim_value: 3
}
dim {
dim_value: 3
}
}
}
}
}
output {
name: "Y"
type {
tensor_type {
elem_type: 1
shape {
dim {
dim_value: 1
}
dim {
dim_value: 2
}
dim {
dim_value: 10
}
dim {
dim_value: 8
}
}
}
}
}
}
opset_import {
version: 9
}
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "util/all_close.hpp" #include "util/all_close.hpp"
#include "util/all_close_f.hpp" #include "util/all_close_f.hpp"
#include "util/ndarray.hpp" #include "util/ndarray.hpp"
#include "util/test_case.hpp"
#include "util/test_control.hpp" #include "util/test_control.hpp"
#include "util/test_tools.hpp" #include "util/test_tools.hpp"
...@@ -409,3 +410,19 @@ NGRAPH_TEST(onnx_${BACKEND_NAME}, model_global_lp_pool_p3) ...@@ -409,3 +410,19 @@ NGRAPH_TEST(onnx_${BACKEND_NAME}, model_global_lp_pool_p3)
EXPECT_TRUE(test::all_close_f(expected_outputs.front(), outputs.front())); EXPECT_TRUE(test::all_close_f(expected_outputs.front(), outputs.front()));
} }
NGRAPH_TEST(onnx_${BACKEND_NAME}, model_convtranspose_output_shape)
{
auto conv_transpose_fn = onnx_import::import_onnx_model(
file_util::path_join(SERIALIZED_ZOO, "onnx/convtranspose_output_shape.prototxt"));
auto test_case = ngraph::test::NgraphTestCase(conv_transpose_fn, "${BACKEND_NAME}");
test_case.add_input_from_file<float>(TEST_FILES, "onnx/convtranspose_output_shape/x.bin");
test_case.add_input_from_file<float>(TEST_FILES, "onnx/convtranspose_output_shape/w.bin");
test_case.add_expected_output_from_file<float>(
{1, 2, 10, 8}, TEST_FILES, "onnx/convtranspose_output_shape/y.bin");
test_case.dump_results();
test_case.run();
}
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