summaryrefslogtreecommitdiff
path: root/nn/runtime/test/TestPartitioningRandom.cpp
diff options
context:
space:
mode:
authorSlava Shklyaev <slavash@google.com>2019-11-22 12:24:58 +0000
committerSlava Shklyaev <slavash@google.com>2020-01-14 16:00:20 +0000
commita1f4f7177cde296aceaa7ad10af18c4080c356dc (patch)
tree91845a8f3aa8a31ba71cd2bcebb276d1b0ed2aba /nn/runtime/test/TestPartitioningRandom.cpp
parent3e85627602937af3af4267df9af8151ea2f7532a (diff)
downloadml-a1f4f7177cde296aceaa7ad10af18c4080c356dc.tar.gz
Deprecate the term "submodel" in favor of "step model", "referenced model", etc
With the introduction of control flow and referenced models, the term "submodel" becomes easy to misinterpret. This change replaces existing uses of the term "submodel" with "step model" and "sliced model" depending on the context. Bug: 139181916 Test: NeuralNetworksTest_static_asan Change-Id: Ida0dd90f983321f4aa3664763afa331d8d0da4ca
Diffstat (limited to 'nn/runtime/test/TestPartitioningRandom.cpp')
-rw-r--r--nn/runtime/test/TestPartitioningRandom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/nn/runtime/test/TestPartitioningRandom.cpp b/nn/runtime/test/TestPartitioningRandom.cpp
index 8a2ecf013..7e75c3819 100644
--- a/nn/runtime/test/TestPartitioningRandom.cpp
+++ b/nn/runtime/test/TestPartitioningRandom.cpp
@@ -1152,7 +1152,7 @@ TEST_P(RandomPartitioningTest, Test) {
Result::NO_ERROR);
auto compilationResult = cNoFallback.finish();
if (hasUnknownDimensions && compilationResult == Result::OP_FAILED &&
- cNoFallback.getExecutionPlan().forTest_hasSubModelOutputsOfUnknownSize()) {
+ cNoFallback.getExecutionPlan().forTest_hasStepModelOutputsOfUnknownSize()) {
ASSERT_EQ(cWithFallback.setPartitioning(DeviceManager::kPartitioningWithFallback),
Result::NO_ERROR);
ASSERT_EQ(cWithFallback.finish(), Result::NO_ERROR);
@@ -1183,7 +1183,7 @@ TEST_P(RandomPartitioningTest, Test) {
std::cout << "plan: compound, " << steps.size() << " steps over "
<< devicesInPlan.size() << " devices" << std::endl;
for (unsigned i = 0; i < steps.size(); i++) {
- std::cout << "Step " << i << ": " << ModelStats(steps[i]->getSubModel())
+ std::cout << "Step " << i << ": " << ModelStats(steps[i]->getStepModel())
<< ", device = " << steps[i]->getDevice()->getName() << std::endl;
}
break;