summaryrefslogtreecommitdiff
path: root/runtimes/neurun/test
diff options
context:
space:
mode:
author이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>2019-04-04 13:20:01 +0900
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>2019-04-04 13:20:01 +0900
commit19ce1561e51b0186e96201ebf55bddb0ac2ba4cd (patch)
tree70f91e144fb25ad9e8d1065415e5fb5238179562 /runtimes/neurun/test
parent123c8fc2a05188098826a2aff52291a0de2dc6d3 (diff)
downloadnnfw-19ce1561e51b0186e96201ebf55bddb0ac2ba4cd.tar.gz
nnfw-19ce1561e51b0186e96201ebf55bddb0ac2ba4cd.tar.bz2
nnfw-19ce1561e51b0186e96201ebf55bddb0ac2ba4cd.zip
[neurun] Simpify TypeInfo constructor using default parameters (#4926)
`scale` and `offset` are used only in case of `TENSOR_QUANT8_ASYMM`. For most cases, we don't need the values at all. Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
Diffstat (limited to 'runtimes/neurun/test')
-rw-r--r--runtimes/neurun/test/graph/operand/Set.cc2
-rw-r--r--runtimes/neurun/test/graph/operand/UseDef.cc2
-rw-r--r--runtimes/neurun/test/graph/operation/SetIO.cc4
-rw-r--r--runtimes/neurun/test/graph/verifier/Verifier.cc2
-rw-r--r--runtimes/neurun/test/interp/ExecManager.cc4
5 files changed, 7 insertions, 7 deletions
diff --git a/runtimes/neurun/test/graph/operand/Set.cc b/runtimes/neurun/test/graph/operand/Set.cc
index 2a0836c4e..310cf9194 100644
--- a/runtimes/neurun/test/graph/operand/Set.cc
+++ b/runtimes/neurun/test/graph/operand/Set.cc
@@ -30,7 +30,7 @@ TEST(graph_operand_Set, set_test)
shape1.dim(2) = 30;
shape1.dim(3) = 40;
- ::neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32, 0, 0};
+ ::neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32};
set.append(shape0, type);
set.append(shape1, type);
diff --git a/runtimes/neurun/test/graph/operand/UseDef.cc b/runtimes/neurun/test/graph/operand/UseDef.cc
index 00f22f822..34fc82959 100644
--- a/runtimes/neurun/test/graph/operand/UseDef.cc
+++ b/runtimes/neurun/test/graph/operand/UseDef.cc
@@ -38,7 +38,7 @@ TEST(graph_operand_usedef, usedef_test)
neurun::graph::verifier::DAGChecker verifier;
neurun::model::operand::Shape shape(3);
- neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32, 0, 0};
+ neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32};
// Model Input/Output
auto input_operand = model->operands.append(shape, type);
diff --git a/runtimes/neurun/test/graph/operation/SetIO.cc b/runtimes/neurun/test/graph/operation/SetIO.cc
index 5d1f7a0e2..48b25f5f7 100644
--- a/runtimes/neurun/test/graph/operation/SetIO.cc
+++ b/runtimes/neurun/test/graph/operation/SetIO.cc
@@ -35,7 +35,7 @@ TEST(graph_operation_setIO, operation_setIO_conv)
neurun::model::Model model;
neurun::model::operand::Shape shape{3};
- neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32, 0, 0};
+ neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32};
// Add Conv
using GraphNode = neurun::model::operation::Conv2DNode;
@@ -70,7 +70,7 @@ TEST(graph_operation_setIO, operation_setIO_concat)
neurun::model::operand::Shape shape{3};
- neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32, 0, 0};
+ neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32};
using GraphNode = neurun::model::operation::ConcatNode;
diff --git a/runtimes/neurun/test/graph/verifier/Verifier.cc b/runtimes/neurun/test/graph/verifier/Verifier.cc
index 65523bee0..e3f0d51f8 100644
--- a/runtimes/neurun/test/graph/verifier/Verifier.cc
+++ b/runtimes/neurun/test/graph/verifier/Verifier.cc
@@ -32,7 +32,7 @@ TEST(Verifier, dag_checker)
std::unique_ptr<neurun::model::Model> model = nnfw::cpp14::make_unique<neurun::model::Model>();
::neurun::model::operand::Shape shape{3};
- ::neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32, 0, 0};
+ ::neurun::model::operand::TypeInfo type{neurun::model::operand::DataType::TENSOR_INT32};
auto operand1 = model->operands.append(shape, type);
auto operand2 = model->operands.append(shape, type);
diff --git a/runtimes/neurun/test/interp/ExecManager.cc b/runtimes/neurun/test/interp/ExecManager.cc
index c8f05fa9e..7a93f85f4 100644
--- a/runtimes/neurun/test/interp/ExecManager.cc
+++ b/runtimes/neurun/test/interp/ExecManager.cc
@@ -46,9 +46,9 @@ protected:
std::unique_ptr<neurun::model::Model> model = nnfw::cpp14::make_unique<neurun::model::Model>();
operand::Shape shape{1, 2, 2, 1};
- operand::TypeInfo type{DataType::TENSOR_INT32, 0, 0};
+ operand::TypeInfo type{DataType::TENSOR_INT32};
operand::Shape shape_scalar(0);
- operand::TypeInfo type_scalar{DataType::SCALAR_INT32, 0, 0};
+ operand::TypeInfo type_scalar{DataType::SCALAR_INT32};
auto operand_lhs = model->operands.append(shape, type);
auto operand_rhs = model->operands.append(shape, type);