diff options
author | 오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com> | 2019-02-14 14:11:29 +0900 |
---|---|---|
committer | 박세희/On-Device Lab(SR)/Principal Engineer/삼성전자 <saehie.park@samsung.com> | 2019-02-14 14:11:29 +0900 |
commit | 3aae6cc60b98134d9239032b750603995ff4b054 (patch) | |
tree | 8ca4a30d5dcce245f00827629da4599174269dbc /runtimes/neurun/test | |
parent | aabe4b3479c920c597354496ea3d074094db20d5 (diff) | |
download | nnfw-3aae6cc60b98134d9239032b750603995ff4b054.tar.gz nnfw-3aae6cc60b98134d9239032b750603995ff4b054.tar.bz2 nnfw-3aae6cc60b98134d9239032b750603995ff4b054.zip |
Revise OperandUsage and related methods (#4408)
Rename OperandUsage as Usage
Remove setters for each enum value and use one setter
Rename getter and setter for usage
Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
Diffstat (limited to 'runtimes/neurun/test')
-rw-r--r-- | runtimes/neurun/test/graph/operand/UseDef.cc | 8 | ||||
-rw-r--r-- | runtimes/neurun/test/graph/verifier/Verifier.cc | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/runtimes/neurun/test/graph/operand/UseDef.cc b/runtimes/neurun/test/graph/operand/UseDef.cc index 7f68b13e3..fd451c1a9 100644 --- a/runtimes/neurun/test/graph/operand/UseDef.cc +++ b/runtimes/neurun/test/graph/operand/UseDef.cc @@ -45,19 +45,19 @@ TEST(graph_operand_usedef, usedef_test) auto output_operand = graph.addOperand(shape, type); graph.addInput(input_operand); - graph.operands().at(input_operand).setAsModelInput(); + graph.operands().at(input_operand).usage(neurun::model::operand::Usage::MODEL_INPUT); graph.addOutput(output_operand); - graph.operands().at(output_operand).setAsOperationOutput(); + graph.operands().at(output_operand).usage(neurun::model::operand::Usage::OPERATION_OUTPUT); // MockNode1 auto operand_index1 = graph.addOperand(shape, type); - graph.operands().at(operand_index1).setAsOperationOutput(); + graph.operands().at(operand_index1).usage(neurun::model::operand::Usage::OPERATION_OUTPUT); auto mocknode_index1 = graph.addOperation( nnfw::cpp14::make_unique<MockNode>(IndexSet{input_operand}, IndexSet{operand_index1})); // MockNode2 auto operand_index2 = graph.addOperand(shape, type); - graph.operands().at(operand_index2).setAsOperationOutput(); + graph.operands().at(operand_index2).usage(neurun::model::operand::Usage::OPERATION_OUTPUT); auto mocknode_index2 = graph.addOperation( nnfw::cpp14::make_unique<MockNode>(IndexSet{input_operand}, IndexSet{operand_index2})); diff --git a/runtimes/neurun/test/graph/verifier/Verifier.cc b/runtimes/neurun/test/graph/verifier/Verifier.cc index b736ad2d1..b4e15a54a 100644 --- a/runtimes/neurun/test/graph/verifier/Verifier.cc +++ b/runtimes/neurun/test/graph/verifier/Verifier.cc @@ -39,9 +39,9 @@ TEST(Verifier, dag_checker) auto operand2 = graph.addOperand(shape, type); graph.addInput(operand1); - graph.operands().at(operand1).setAsModelInput(); + graph.operands().at(operand1).usage(neurun::model::operand::Usage::MODEL_INPUT); graph.addOutput(operand2); - graph.operands().at(operand2).setAsOperationOutput(); + graph.operands().at(operand2).usage(neurun::model::operand::Usage::OPERATION_OUTPUT); graph.addOperation(nnfw::cpp14::make_unique<MockNode>(IndexSet{operand1}, IndexSet{operand2})); |