// Generated from squeeze_quant8_signed.mod.py // DO NOT EDIT // clang-format off #include "TestHarness.h" using namespace test_helper; namespace generated_tests::squeeze_quant8_signed { const TestModel& get_test_model() { static TestModel model = { .expectFailure = false, .expectedMultinomialDistributionTolerance = 0, .isRelaxed = false, .main = { .inputIndexes = {0}, .operands = {{ // input .channelQuant = {}, .data = TestBuffer::createFromVector({-127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104}), .dimensions = {1, 24, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT, .numberOfConsumers = 1, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // squeezeDims .channelQuant = {}, .data = TestBuffer::createFromVector({2}), .dimensions = {1}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 0.0f, .type = TestOperandType::TENSOR_INT32, .zeroPoint = 0 }, { // output .channelQuant = {}, .data = TestBuffer::createFromVector({-127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104}), .dimensions = {1, 24}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT, .numberOfConsumers = 0, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }}, .operations = {{ .inputs = {0, 1}, .outputs = {2}, .type = TestOperationType::SQUEEZE }}, .outputIndexes = {2} }, .minSupportedVersion = TestHalVersion::V1_3, .referenced = {} }; return model; } const auto dummy_test_model = TestModelManager::get().add("squeeze_quant8_signed", get_test_model()); } // namespace generated_tests::squeeze_quant8_signed namespace generated_tests::squeeze_quant8_signed { const TestModel& get_test_model_all_inputs_as_internal() { static TestModel model = { .expectFailure = false, .expectedMultinomialDistributionTolerance = 0, .isRelaxed = false, .main = { .inputIndexes = {3}, .operands = {{ // input .channelQuant = {}, .data = TestBuffer::createFromVector({}), .dimensions = {1, 24, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE, .numberOfConsumers = 1, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // squeezeDims .channelQuant = {}, .data = TestBuffer::createFromVector({2}), .dimensions = {1}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 0.0f, .type = TestOperandType::TENSOR_INT32, .zeroPoint = 0 }, { // output .channelQuant = {}, .data = TestBuffer::createFromVector({-127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104}), .dimensions = {1, 24}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT, .numberOfConsumers = 0, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // input_new .channelQuant = {}, .data = TestBuffer::createFromVector({-127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104}), .dimensions = {1, 24, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT, .numberOfConsumers = 1, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // dummy .channelQuant = {}, .data = TestBuffer::createFromVector({-128}), .dimensions = {1}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // param .channelQuant = {}, .data = TestBuffer::createFromVector({0}), .dimensions = {}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 0.0f, .type = TestOperandType::INT32, .zeroPoint = 0 }}, .operations = {{ .inputs = {3, 4, 5}, .outputs = {0}, .type = TestOperationType::ADD }, { .inputs = {0, 1}, .outputs = {2}, .type = TestOperationType::SQUEEZE }}, .outputIndexes = {2} }, .minSupportedVersion = TestHalVersion::V1_3, .referenced = {} }; return model; } const auto dummy_test_model_all_inputs_as_internal = TestModelManager::get().add("squeeze_quant8_signed_all_inputs_as_internal", get_test_model_all_inputs_as_internal()); } // namespace generated_tests::squeeze_quant8_signed namespace generated_tests::squeeze_quant8_signed { const TestModel& get_test_model_omitted() { static TestModel model = { .expectFailure = false, .expectedMultinomialDistributionTolerance = 0, .isRelaxed = false, .main = { // omitted .inputIndexes = {0}, .operands = {{ // input .channelQuant = {}, .data = TestBuffer::createFromVector({-127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104}), .dimensions = {1, 24, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT, .numberOfConsumers = 1, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // squeezeDims1 .channelQuant = {}, .data = TestBuffer::createFromVector({}), .dimensions = {0}, .isIgnored = false, .lifetime = TestOperandLifeTime::NO_VALUE, .numberOfConsumers = 1, .scale = 0.0f, .type = TestOperandType::TENSOR_INT32, .zeroPoint = 0 }, { // output1 .channelQuant = {}, .data = TestBuffer::createFromVector({-127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104}), .dimensions = {24}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT, .numberOfConsumers = 0, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }}, .operations = {{ .inputs = {0, 1}, .outputs = {2}, .type = TestOperationType::SQUEEZE }}, .outputIndexes = {2} }, .minSupportedVersion = TestHalVersion::V1_3, .referenced = {} }; return model; } const auto dummy_test_model_omitted = TestModelManager::get().add("squeeze_quant8_signed_omitted", get_test_model_omitted()); } // namespace generated_tests::squeeze_quant8_signed namespace generated_tests::squeeze_quant8_signed { const TestModel& get_test_model_omitted_all_inputs_as_internal() { static TestModel model = { .expectFailure = false, .expectedMultinomialDistributionTolerance = 0, .isRelaxed = false, .main = { // omitted .inputIndexes = {3}, .operands = {{ // input .channelQuant = {}, .data = TestBuffer::createFromVector({}), .dimensions = {1, 24, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE, .numberOfConsumers = 1, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // squeezeDims1 .channelQuant = {}, .data = TestBuffer::createFromVector({}), .dimensions = {0}, .isIgnored = false, .lifetime = TestOperandLifeTime::NO_VALUE, .numberOfConsumers = 1, .scale = 0.0f, .type = TestOperandType::TENSOR_INT32, .zeroPoint = 0 }, { // output1 .channelQuant = {}, .data = TestBuffer::createFromVector({-127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104}), .dimensions = {24}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT, .numberOfConsumers = 0, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // input_new .channelQuant = {}, .data = TestBuffer::createFromVector({-127, -126, -125, -124, -123, -122, -121, -120, -119, -118, -117, -116, -115, -114, -113, -112, -111, -110, -109, -108, -107, -106, -105, -104}), .dimensions = {1, 24, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT, .numberOfConsumers = 1, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // dummy1 .channelQuant = {}, .data = TestBuffer::createFromVector({-128}), .dimensions = {1}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 1.0f, .type = TestOperandType::TENSOR_QUANT8_ASYMM_SIGNED, .zeroPoint = -128 }, { // param1 .channelQuant = {}, .data = TestBuffer::createFromVector({0}), .dimensions = {}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 0.0f, .type = TestOperandType::INT32, .zeroPoint = 0 }}, .operations = {{ .inputs = {3, 4, 5}, .outputs = {0}, .type = TestOperationType::ADD }, { .inputs = {0, 1}, .outputs = {2}, .type = TestOperationType::SQUEEZE }}, .outputIndexes = {2} }, .minSupportedVersion = TestHalVersion::V1_3, .referenced = {} }; return model; } const auto dummy_test_model_omitted_all_inputs_as_internal = TestModelManager::get().add("squeeze_quant8_signed_omitted_all_inputs_as_internal", get_test_model_omitted_all_inputs_as_internal()); } // namespace generated_tests::squeeze_quant8_signed