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/GetInputsOutputs.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/GetInputsOutputs.cpp')
-rw-r--r-- | src/armnnOnnxParser/test/GetInputsOutputs.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/armnnOnnxParser/test/GetInputsOutputs.cpp b/src/armnnOnnxParser/test/GetInputsOutputs.cpp index 677609376c..b22ef3a308 100644 --- a/src/armnnOnnxParser/test/GetInputsOutputs.cpp +++ b/src/armnnOnnxParser/test/GetInputsOutputs.cpp @@ -29,7 +29,7 @@ struct GetInputsOutputsMainFixture : public armnnUtils::ParserPrototxtFixture<ar name: "Input" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 4 @@ -48,7 +48,7 @@ struct GetInputsOutputsMainFixture : public armnnUtils::ParserPrototxtFixture<ar name: "Output" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 4 @@ -101,7 +101,7 @@ struct GetEmptyInputsOutputsFixture : public armnnUtils::ParserPrototxtFixture<a name: "value" t { dims: 7 - data_type: FLOAT + data_type: 1 float_data: 0.0 float_data: 1.0 float_data: 2.0 @@ -111,7 +111,7 @@ struct GetEmptyInputsOutputsFixture : public armnnUtils::ParserPrototxtFixture<a float_data: 6.0 } - type: FLOAT + type: 1 } name: "constantNode" op_type: "Constant" @@ -120,7 +120,7 @@ struct GetEmptyInputsOutputsFixture : public armnnUtils::ParserPrototxtFixture<a name: "Output" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 7 @@ -171,7 +171,7 @@ struct GetInputsMultipleFixture : public armnnUtils::ParserPrototxtFixture<armnn name: "Input0" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 @@ -193,7 +193,7 @@ struct GetInputsMultipleFixture : public armnnUtils::ParserPrototxtFixture<armnn name: "Input1" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 4 @@ -215,7 +215,7 @@ struct GetInputsMultipleFixture : public armnnUtils::ParserPrototxtFixture<armnn name: "Output" type { tensor_type { - elem_type: FLOAT + elem_type: 1 shape { dim { dim_value: 1 |