summaryrefslogtreecommitdiff
path: root/nn/runtime/test/generated
diff options
context:
space:
mode:
Diffstat (limited to 'nn/runtime/test/generated')
-rw-r--r--nn/runtime/test/generated/spec_V1_1/lsh_projection_2_relaxed.example.cpp111
-rw-r--r--nn/runtime/test/generated/spec_V1_1/lsh_projection_relaxed.example.cpp44
-rw-r--r--nn/runtime/test/generated/spec_V1_2/lsh_projection_3_relaxed.example.cpp111
-rw-r--r--nn/runtime/test/generated/spec_V1_2/lsh_projection_4_relaxed.example.cpp111
-rw-r--r--nn/runtime/test/generated/spec_V1_2/lsh_projection_deprecated.example.cpp111
-rw-r--r--nn/runtime/test/generated/spec_V1_2/lsh_projection_float16.example.cpp410
6 files changed, 5 insertions, 893 deletions
diff --git a/nn/runtime/test/generated/spec_V1_1/lsh_projection_2_relaxed.example.cpp b/nn/runtime/test/generated/spec_V1_1/lsh_projection_2_relaxed.example.cpp
index 6fcbb81ec..23dbd2795 100644
--- a/nn/runtime/test/generated/spec_V1_1/lsh_projection_2_relaxed.example.cpp
+++ b/nn/runtime/test/generated/spec_V1_1/lsh_projection_2_relaxed.example.cpp
@@ -158,114 +158,3 @@ const auto dummy_test_model_all_tensors_as_inputs = TestModelManager::get().add(
} // namespace generated_tests::lsh_projection_2_relaxed
-namespace generated_tests::lsh_projection_2_relaxed {
-
-const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
- static TestModel model = {
- .expectFailure = false,
- .expectedMultinomialDistributionTolerance = 0,
- .isRelaxed = true,
- .main = {
- .inputIndexes = {1, 2, 5},
- .operands = {{ // hash
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // lookup
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({12345, 54321, 67890, 9876, -12345678, -87654321}),
- .dimensions = {3, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // type_param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // output
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1, 2, 2, 0}),
- .dimensions = {4},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
- .numberOfConsumers = 0,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // hash_new
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // dummy
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.0f}),
- .dimensions = {1},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({0}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }},
- .operations = {{
- .inputs = {5, 6, 7},
- .outputs = {0},
- .type = TestOperationType::ADD
- }, {
- .inputs = {0, 1, 2, 3},
- .outputs = {4},
- .type = TestOperationType::LSH_PROJECTION
- }},
- .outputIndexes = {4}
- },
- .minSupportedVersion = TestHalVersion::UNKNOWN,
- .referenced = {}
- };
- return model;
-}
-
-const auto dummy_test_model_all_tensors_as_inputs_all_inputs_as_internal = TestModelManager::get().add("lsh_projection_2_relaxed_all_tensors_as_inputs_all_inputs_as_internal", get_test_model_all_tensors_as_inputs_all_inputs_as_internal());
-
-} // namespace generated_tests::lsh_projection_2_relaxed
-
diff --git a/nn/runtime/test/generated/spec_V1_1/lsh_projection_relaxed.example.cpp b/nn/runtime/test/generated/spec_V1_1/lsh_projection_relaxed.example.cpp
index 68782659b..aa7ccfb24 100644
--- a/nn/runtime/test/generated/spec_V1_1/lsh_projection_relaxed.example.cpp
+++ b/nn/runtime/test/generated/spec_V1_1/lsh_projection_relaxed.example.cpp
@@ -277,13 +277,13 @@ const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
.expectedMultinomialDistributionTolerance = 0,
.isRelaxed = true,
.main = {
- .inputIndexes = {1, 5, 8},
+ .inputIndexes = {0, 1, 5},
.operands = {{ // hash
.channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
+ .data = TestBuffer::createFromVector<float>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
.dimensions = {4, 2},
.isIgnored = false,
- .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
+ .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
.numberOfConsumers = 1,
.scale = 0.0f,
.type = TestOperandType::TENSOR_FLOAT32,
@@ -328,36 +328,6 @@ const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
.scale = 0.0f,
.type = TestOperandType::TENSOR_INT32,
.zeroPoint = 0
- }, { // hash_new
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // dummy1
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.0f}),
- .dimensions = {1},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // param1
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({0}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
}, { // weight_new
.channelQuant = {},
.data = TestBuffer::createFromVector<float>({0.12f, 0.34f, 0.56f}),
@@ -368,7 +338,7 @@ const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
.scale = 0.0f,
.type = TestOperandType::TENSOR_FLOAT32,
.zeroPoint = 0
- }, { // dummy2
+ }, { // dummy1
.channelQuant = {},
.data = TestBuffer::createFromVector<float>({0.0f}),
.dimensions = {1},
@@ -378,7 +348,7 @@ const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
.scale = 0.0f,
.type = TestOperandType::TENSOR_FLOAT32,
.zeroPoint = 0
- }, { // param2
+ }, { // param1
.channelQuant = {},
.data = TestBuffer::createFromVector<int32_t>({0}),
.dimensions = {},
@@ -391,10 +361,6 @@ const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
}},
.operations = {{
.inputs = {5, 6, 7},
- .outputs = {0},
- .type = TestOperationType::ADD
- }, {
- .inputs = {8, 9, 10},
.outputs = {2},
.type = TestOperationType::ADD
}, {
diff --git a/nn/runtime/test/generated/spec_V1_2/lsh_projection_3_relaxed.example.cpp b/nn/runtime/test/generated/spec_V1_2/lsh_projection_3_relaxed.example.cpp
index 0b964f97c..f44967963 100644
--- a/nn/runtime/test/generated/spec_V1_2/lsh_projection_3_relaxed.example.cpp
+++ b/nn/runtime/test/generated/spec_V1_2/lsh_projection_3_relaxed.example.cpp
@@ -158,114 +158,3 @@ const auto dummy_test_model_all_tensors_as_inputs = TestModelManager::get().add(
} // namespace generated_tests::lsh_projection_3_relaxed
-namespace generated_tests::lsh_projection_3_relaxed {
-
-const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
- static TestModel model = {
- .expectFailure = false,
- .expectedMultinomialDistributionTolerance = 0,
- .isRelaxed = true,
- .main = {
- .inputIndexes = {1, 2, 5},
- .operands = {{ // hash
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // lookup
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({12345, 54321, 67890, 9876, -12345678, -87654321}),
- .dimensions = {3, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // type_param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({3}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // output
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1, 6, 10, 12}),
- .dimensions = {4},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
- .numberOfConsumers = 0,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // hash_new
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // dummy
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.0f}),
- .dimensions = {1},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({0}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }},
- .operations = {{
- .inputs = {5, 6, 7},
- .outputs = {0},
- .type = TestOperationType::ADD
- }, {
- .inputs = {0, 1, 2, 3},
- .outputs = {4},
- .type = TestOperationType::LSH_PROJECTION
- }},
- .outputIndexes = {4}
- },
- .minSupportedVersion = TestHalVersion::UNKNOWN,
- .referenced = {}
- };
- return model;
-}
-
-const auto dummy_test_model_all_tensors_as_inputs_all_inputs_as_internal = TestModelManager::get().add("lsh_projection_3_relaxed_all_tensors_as_inputs_all_inputs_as_internal", get_test_model_all_tensors_as_inputs_all_inputs_as_internal());
-
-} // namespace generated_tests::lsh_projection_3_relaxed
-
diff --git a/nn/runtime/test/generated/spec_V1_2/lsh_projection_4_relaxed.example.cpp b/nn/runtime/test/generated/spec_V1_2/lsh_projection_4_relaxed.example.cpp
index 2329565ae..09e165d52 100644
--- a/nn/runtime/test/generated/spec_V1_2/lsh_projection_4_relaxed.example.cpp
+++ b/nn/runtime/test/generated/spec_V1_2/lsh_projection_4_relaxed.example.cpp
@@ -158,114 +158,3 @@ const auto dummy_test_model_all_tensors_as_inputs = TestModelManager::get().add(
} // namespace generated_tests::lsh_projection_4_relaxed
-namespace generated_tests::lsh_projection_4_relaxed {
-
-const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
- static TestModel model = {
- .expectFailure = false,
- .expectedMultinomialDistributionTolerance = 0,
- .isRelaxed = true,
- .main = {
- .inputIndexes = {1, 2, 5},
- .operands = {{ // hash
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // lookup
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({12345, 54321, 67890, 9876, -12345678, -87654321}),
- .dimensions = {3, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // type_param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // output
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1, 2, 2, 0}),
- .dimensions = {4},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
- .numberOfConsumers = 0,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // hash_new
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // dummy
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.0f}),
- .dimensions = {1},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({0}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }},
- .operations = {{
- .inputs = {5, 6, 7},
- .outputs = {0},
- .type = TestOperationType::ADD
- }, {
- .inputs = {0, 1, 2, 3},
- .outputs = {4},
- .type = TestOperationType::LSH_PROJECTION
- }},
- .outputIndexes = {4}
- },
- .minSupportedVersion = TestHalVersion::UNKNOWN,
- .referenced = {}
- };
- return model;
-}
-
-const auto dummy_test_model_all_tensors_as_inputs_all_inputs_as_internal = TestModelManager::get().add("lsh_projection_4_relaxed_all_tensors_as_inputs_all_inputs_as_internal", get_test_model_all_tensors_as_inputs_all_inputs_as_internal());
-
-} // namespace generated_tests::lsh_projection_4_relaxed
-
diff --git a/nn/runtime/test/generated/spec_V1_2/lsh_projection_deprecated.example.cpp b/nn/runtime/test/generated/spec_V1_2/lsh_projection_deprecated.example.cpp
index e225e5500..e87591ee9 100644
--- a/nn/runtime/test/generated/spec_V1_2/lsh_projection_deprecated.example.cpp
+++ b/nn/runtime/test/generated/spec_V1_2/lsh_projection_deprecated.example.cpp
@@ -158,114 +158,3 @@ const auto dummy_test_model_all_tensors_as_inputs = TestModelManager::get().add(
} // namespace generated_tests::lsh_projection_deprecated
-namespace generated_tests::lsh_projection_deprecated {
-
-const TestModel& get_test_model_all_tensors_as_inputs_all_inputs_as_internal() {
- static TestModel model = {
- .expectFailure = false,
- .expectedMultinomialDistributionTolerance = 0,
- .isRelaxed = true,
- .main = {
- .inputIndexes = {1, 2, 5},
- .operands = {{ // hash
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // lookup
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({12345, 54321, 67890, 9876, -12345678, -87654321}),
- .dimensions = {3, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // type_param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // output
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1, 2, 2, 0}),
- .dimensions = {4},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
- .numberOfConsumers = 0,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // hash_new
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // dummy
- .channelQuant = {},
- .data = TestBuffer::createFromVector<float>({0.0f}),
- .dimensions = {1},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT32,
- .zeroPoint = 0
- }, { // param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({0}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }},
- .operations = {{
- .inputs = {5, 6, 7},
- .outputs = {0},
- .type = TestOperationType::ADD
- }, {
- .inputs = {0, 1, 2, 3},
- .outputs = {4},
- .type = TestOperationType::LSH_PROJECTION
- }},
- .outputIndexes = {4}
- },
- .minSupportedVersion = TestHalVersion::UNKNOWN,
- .referenced = {}
- };
- return model;
-}
-
-const auto dummy_test_model_all_tensors_as_inputs_all_inputs_as_internal = TestModelManager::get().add("lsh_projection_deprecated_all_tensors_as_inputs_all_inputs_as_internal", get_test_model_all_tensors_as_inputs_all_inputs_as_internal());
-
-} // namespace generated_tests::lsh_projection_deprecated
-
diff --git a/nn/runtime/test/generated/spec_V1_2/lsh_projection_float16.example.cpp b/nn/runtime/test/generated/spec_V1_2/lsh_projection_float16.example.cpp
index c69b0c1e3..4a57101db 100644
--- a/nn/runtime/test/generated/spec_V1_2/lsh_projection_float16.example.cpp
+++ b/nn/runtime/test/generated/spec_V1_2/lsh_projection_float16.example.cpp
@@ -414,413 +414,3 @@ const auto dummy_test_model_all_tensors_as_inputs_all_inputs_as_internal = TestM
} // namespace generated_tests::lsh_projection_float16
-namespace generated_tests::lsh_projection_float16 {
-
-const TestModel& get_test_model_float16() {
- static TestModel model = {
- .expectFailure = false,
- .expectedMultinomialDistributionTolerance = 0,
- .isRelaxed = false,
- .main = {
- .inputIndexes = {1, 2},
- .operands = {{ // hash
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // lookup
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({12345, 54321, 67890, 9876, -12345678, -87654321}),
- .dimensions = {3, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.12f, 0.34f, 0.56f}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // type_param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({2}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // output
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1, 1, 1, 1, 1, 0, 0, 0}),
- .dimensions = {8},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
- .numberOfConsumers = 0,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }},
- .operations = {{
- .inputs = {0, 1, 2, 3},
- .outputs = {4},
- .type = TestOperationType::LSH_PROJECTION
- }},
- .outputIndexes = {4}
- },
- .minSupportedVersion = TestHalVersion::V1_2,
- .referenced = {}
- };
- return model;
-}
-
-const auto dummy_test_model_float16 = TestModelManager::get().add("lsh_projection_float16_float16", get_test_model_float16());
-
-} // namespace generated_tests::lsh_projection_float16
-
-namespace generated_tests::lsh_projection_float16 {
-
-const TestModel& get_test_model_float16_all_inputs_as_internal() {
- static TestModel model = {
- .expectFailure = false,
- .expectedMultinomialDistributionTolerance = 0,
- .isRelaxed = false,
- .main = {
- .inputIndexes = {1, 5},
- .operands = {{ // hash
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // lookup
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({12345, 54321, 67890, 9876, -12345678, -87654321}),
- .dimensions = {3, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // type_param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({2}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // output
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1, 1, 1, 1, 1, 0, 0, 0}),
- .dimensions = {8},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
- .numberOfConsumers = 0,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight_new
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.12f, 0.34f, 0.56f}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // dummy3
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.0f}),
- .dimensions = {1},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // param3
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({0}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }},
- .operations = {{
- .inputs = {5, 6, 7},
- .outputs = {2},
- .type = TestOperationType::ADD
- }, {
- .inputs = {0, 1, 2, 3},
- .outputs = {4},
- .type = TestOperationType::LSH_PROJECTION
- }},
- .outputIndexes = {4}
- },
- .minSupportedVersion = TestHalVersion::V1_2,
- .referenced = {}
- };
- return model;
-}
-
-const auto dummy_test_model_float16_all_inputs_as_internal = TestModelManager::get().add("lsh_projection_float16_float16_all_inputs_as_internal", get_test_model_float16_all_inputs_as_internal());
-
-} // namespace generated_tests::lsh_projection_float16
-
-namespace generated_tests::lsh_projection_float16 {
-
-const TestModel& get_test_model_float16_all_tensors_as_inputs() {
- static TestModel model = {
- .expectFailure = false,
- .expectedMultinomialDistributionTolerance = 0,
- .isRelaxed = false,
- .main = {
- .inputIndexes = {0, 1, 2},
- .operands = {{ // hash
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // lookup
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({12345, 54321, 67890, 9876, -12345678, -87654321}),
- .dimensions = {3, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.12f, 0.34f, 0.56f}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // type_param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({2}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // output
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1, 1, 1, 1, 1, 0, 0, 0}),
- .dimensions = {8},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
- .numberOfConsumers = 0,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }},
- .operations = {{
- .inputs = {0, 1, 2, 3},
- .outputs = {4},
- .type = TestOperationType::LSH_PROJECTION
- }},
- .outputIndexes = {4}
- },
- .minSupportedVersion = TestHalVersion::V1_2,
- .referenced = {}
- };
- return model;
-}
-
-const auto dummy_test_model_float16_all_tensors_as_inputs = TestModelManager::get().add("lsh_projection_float16_float16_all_tensors_as_inputs", get_test_model_float16_all_tensors_as_inputs());
-
-} // namespace generated_tests::lsh_projection_float16
-
-namespace generated_tests::lsh_projection_float16 {
-
-const TestModel& get_test_model_float16_all_tensors_as_inputs_all_inputs_as_internal() {
- static TestModel model = {
- .expectFailure = false,
- .expectedMultinomialDistributionTolerance = 0,
- .isRelaxed = false,
- .main = {
- .inputIndexes = {1, 5, 8},
- .operands = {{ // hash
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // lookup
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({12345, 54321, 67890, 9876, -12345678, -87654321}),
- .dimensions = {3, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // weight
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // type_param
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({2}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // output
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({1, 1, 1, 1, 1, 0, 0, 0}),
- .dimensions = {8},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT,
- .numberOfConsumers = 0,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_INT32,
- .zeroPoint = 0
- }, { // hash_new
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.123f, 0.456f, -0.321f, -0.654f, 1.234f, 5.678f, -4.321f, -8.765f}),
- .dimensions = {4, 2},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // dummy4
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.0f}),
- .dimensions = {1},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // param4
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({0}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }, { // weight_new
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.12f, 0.34f, 0.56f}),
- .dimensions = {3},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // dummy5
- .channelQuant = {},
- .data = TestBuffer::createFromVector<_Float16>({0.0f}),
- .dimensions = {1},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::TENSOR_FLOAT16,
- .zeroPoint = 0
- }, { // param5
- .channelQuant = {},
- .data = TestBuffer::createFromVector<int32_t>({0}),
- .dimensions = {},
- .isIgnored = false,
- .lifetime = TestOperandLifeTime::CONSTANT_COPY,
- .numberOfConsumers = 1,
- .scale = 0.0f,
- .type = TestOperandType::INT32,
- .zeroPoint = 0
- }},
- .operations = {{
- .inputs = {5, 6, 7},
- .outputs = {0},
- .type = TestOperationType::ADD
- }, {
- .inputs = {8, 9, 10},
- .outputs = {2},
- .type = TestOperationType::ADD
- }, {
- .inputs = {0, 1, 2, 3},
- .outputs = {4},
- .type = TestOperationType::LSH_PROJECTION
- }},
- .outputIndexes = {4}
- },
- .minSupportedVersion = TestHalVersion::V1_2,
- .referenced = {}
- };
- return model;
-}
-
-const auto dummy_test_model_float16_all_tensors_as_inputs_all_inputs_as_internal = TestModelManager::get().add("lsh_projection_float16_float16_all_tensors_as_inputs_all_inputs_as_internal", get_test_model_float16_all_tensors_as_inputs_all_inputs_as_internal());
-
-} // namespace generated_tests::lsh_projection_float16
-