diff options
author | Matteo Martincigh <matteo.martincigh@arm.com> | 2018-12-11 13:46:52 +0000 |
---|---|---|
committer | Matteo Martincigh <matteo.martincigh@arm.com> | 2018-12-11 13:50:40 +0000 |
commit | 44a7167e0f13dc1d703cd573f57636fde711c618 (patch) | |
tree | 1f5d8c0677d29d48e55533fc68f622d68752e3aa /src/armnnOnnxParser/test/Reshape.cpp | |
parent | 6a669d757aec8790d4548486cdbf073d8f81b646 (diff) | |
download | armnn-44a7167e0f13dc1d703cd573f57636fde711c618.tar.gz |
Fix the ONNX parser tests issues due to a change in the latest ONNx master
* A recent change in ONNX now forces the data types to be indicated by the
integer corresponding to their original enum value
* The new values are taken from the TensorProto_DataType enum at onnx.pb.h:153
Change-Id: I6054611795a7edb11463396eaefc4dd7e27261a0
Diffstat (limited to 'src/armnnOnnxParser/test/Reshape.cpp')
-rw-r--r-- | src/armnnOnnxParser/test/Reshape.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/armnnOnnxParser/test/Reshape.cpp b/src/armnnOnnxParser/test/Reshape.cpp index ba739cf7b5..60937f0666 100644 --- a/src/armnnOnnxParser/test/Reshape.cpp +++ b/src/armnnOnnxParser/test/Reshape.cpp @@ -38,7 +38,7 @@ struct ReshapeMainFixture : public armnnUtils::ParserPrototxtFixture<armnnOnnxPa name: "Shape" type { tensor_type { - elem_type: INT64 + elem_type: 7 shape { dim { dim_value: 2 @@ -57,7 +57,7 @@ struct ReshapeMainFixture : public armnnUtils::ParserPrototxtFixture<armnnOnnxPa } initializer { dims: 2 - data_type: INT64 + data_type: 7 int64_data: 2 int64_data: 2 name: "Shape" @@ -66,7 +66,7 @@ struct ReshapeMainFixture : public armnnUtils::ParserPrototxtFixture<armnnOnnxPa name: "Output" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 2 @@ -87,14 +87,14 @@ struct ReshapeMainFixture : public armnnUtils::ParserPrototxtFixture<armnnOnnxPa struct ReshapeValidFixture : ReshapeMainFixture { - ReshapeValidFixture() : ReshapeMainFixture("FLOAT") { + ReshapeValidFixture() : ReshapeMainFixture("1") { Setup(); } }; struct ReshapeInvalidFixture : ReshapeMainFixture { - ReshapeInvalidFixture() : ReshapeMainFixture("FLOAT16") { } + ReshapeInvalidFixture() : ReshapeMainFixture("10") { } }; BOOST_FIXTURE_TEST_CASE(ValidReshapeTest, ReshapeValidFixture) |