summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestPartitioningRandom.cpp
diff options
context:
space:
mode:
authorSlava Shklyaev <slavash@google.com>2019-12-13 14:02:37 +0000
committerSlava Shklyaev <slavash@google.com>2020-01-21 19:05:18 +0000
commit08ee3cd733c4f829e947d4be37b79af99047489a (patch)
tree22bb8b2e897fa38107c2a470e7b64c3762c75d1b /nn/runtime/test/TestPartitioningRandom.cpp
parent4346bac4979f874a4c1c70f053d0260291fc5264 (diff)
downloadml-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/TestPartitioningRandom.cpp')
-rw-r--r--nn/runtime/test/TestPartitioningRandom.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/nn/runtime/test/TestPartitioningRandom.cpp b/nn/runtime/test/TestPartitioningRandom.cpp
index 7e75c3819..6f18157d1 100644
--- a/nn/runtime/test/TestPartitioningRandom.cpp
+++ b/nn/runtime/test/TestPartitioningRandom.cpp
@@ -845,7 +845,7 @@ TEST_P(RandomPartitioningTest, Test) {
// We begin by deciding what kind of input each (normal) operation will be; we don't
// actually pick input operand indexes at this time, because we might override this
// decision later.
- enum InputKind { IK_MODEL_INPUT, IK_OPERATION_OUTPUT, IK_VALUE };
+ enum InputKind { IK_SUBGRAPH_INPUT, IK_OPERATION_OUTPUT, IK_VALUE };
std::vector<InputKind> normalOperationInputKinds(normalOperationInputCount);
std::generate(
normalOperationInputKinds.begin(), normalOperationInputKinds.end(),
@@ -874,7 +874,7 @@ TEST_P(RandomPartitioningTest, Test) {
std::min(0.3, (1 - double(model.operationCount()) /
numOperations)))) {
normalOperationInputModelInputCount++;
- return IK_MODEL_INPUT;
+ return IK_SUBGRAPH_INPUT;
}
// Else output of an existing operation.
@@ -895,7 +895,7 @@ TEST_P(RandomPartitioningTest, Test) {
}
if (modelInputs.empty()) {
CHECK(model.operationCount() == 0);
- force(IK_MODEL_INPUT);
+ force(IK_SUBGRAPH_INPUT);
}
// Finally create the normal inputs.
@@ -903,7 +903,7 @@ TEST_P(RandomPartitioningTest, Test) {
for (unsigned i = 0; i < normalOperationInputCount; i++) {
uint32_t operandIndex = ~0U;
switch (normalOperationInputKinds[i]) {
- case IK_MODEL_INPUT: {
+ case IK_SUBGRAPH_INPUT: {
if (!modelInputs.empty() && (randFrac() < 0.5)) {
operandIndex = modelInputs[randUInt(modelInputs.size())];
} else {