diff options
author | Slava Shklyaev <slavash@google.com> | 2019-12-13 14:02:37 +0000 |
---|---|---|
committer | Slava Shklyaev <slavash@google.com> | 2020-01-21 19:05:18 +0000 |
commit | 08ee3cd733c4f829e947d4be37b79af99047489a (patch) | |
tree | 22bb8b2e897fa38107c2a470e7b64c3762c75d1b /nn/runtime/test/TestGenerated.cpp | |
parent | 4346bac4979f874a4c1c70f053d0260291fc5264 (diff) | |
download | ml-08ee3cd733c4f829e947d4be37b79af99047489a.tar.gz |
Rename MODEL_INPUT to SUBGRAPH_INPUT and MODEL_OUTPUT to SUBGRAPH_OUTPUT
This is a mechanical search-and-replace change.
Commands used:
$ cd frameworks/ml/nn
$ grep -rIl 'MODEL_INPUT' | xargs sed -i 's/MODEL_INPUT/SUBGRAPH_INPUT/g'
$ grep -rIl 'MODEL_OUTPUT' | xargs sed -i 's/MODEL_OUTPUT/SUBGRAPH_OUTPUT/g'
Bug: 136735929
Test: see next change
Change-Id: I47b08e438962b4a270dc68736821430c9bb4988a
Diffstat (limited to 'nn/runtime/test/TestGenerated.cpp')
-rw-r--r-- | nn/runtime/test/TestGenerated.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nn/runtime/test/TestGenerated.cpp b/nn/runtime/test/TestGenerated.cpp index 64d41cd84..93603a5eb 100644 --- a/nn/runtime/test/TestGenerated.cpp +++ b/nn/runtime/test/TestGenerated.cpp @@ -104,7 +104,7 @@ class DeviceMemoryTest : public GeneratedTests { static OperandType getOperandType(const TestOperand& op, bool testDynamicOutputShape) { auto dims = op.dimensions; - if (testDynamicOutputShape && op.lifetime == TestOperandLifeTime::MODEL_OUTPUT) { + if (testDynamicOutputShape && op.lifetime == TestOperandLifeTime::SUBGRAPH_OUTPUT) { dims.assign(dims.size(), 0); } if (op.type == TestOperandType::TENSOR_QUANT8_SYMM_PER_CHANNEL) { @@ -132,8 +132,8 @@ void createModel(const TestModel& testModel, bool testDynamicOutputShape, Model* case TestOperandLifeTime::NO_VALUE: model->setOperandValue(index, nullptr, 0); break; - case TestOperandLifeTime::MODEL_INPUT: - case TestOperandLifeTime::MODEL_OUTPUT: + case TestOperandLifeTime::SUBGRAPH_INPUT: + case TestOperandLifeTime::SUBGRAPH_OUTPUT: case TestOperandLifeTime::TEMPORARY_VARIABLE: // Nothing to do here. break; |