// Generated from dequantize.mod.py // DO NOT EDIT // clang-format off #include "TestHarness.h" using namespace test_helper; // NOLINT(google-build-using-namespace) namespace generated_tests::dequantize { const TestModel& get_test_model() { static TestModel model = { .main = { .operands = {{ // op1 .type = TestOperandType::TENSOR_QUANT8_ASYMM, .dimensions = {1, 2, 2, 1}, .numberOfConsumers = 1, .scale = 1.0f, .zeroPoint = 0, .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT, .channelQuant = {}, .isIgnored = false, .data = TestBuffer::createFromVector({0, 32, 128, 255}) }, { // op2 .type = TestOperandType::TENSOR_FLOAT32, .dimensions = {1, 2, 2, 1}, .numberOfConsumers = 0, .scale = 0.0f, .zeroPoint = 0, .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT, .channelQuant = {}, .isIgnored = false, .data = TestBuffer::createFromVector({0.0f, 32.0f, 128.0f, 255.0f}) }}, .operations = {{ .type = TestOperationType::DEQUANTIZE, .inputs = {0}, .outputs = {1} }}, .inputIndexes = {0}, .outputIndexes = {1} }, .referenced = {}, .isRelaxed = false, .expectedMultinomialDistributionTolerance = 0, .expectFailure = false, .minSupportedVersion = TestHalVersion::V1_0 }; return model; } const auto dummy_test_model = TestModelManager::get().add("dequantize", get_test_model()); } // namespace generated_tests::dequantize namespace generated_tests::dequantize { const TestModel& get_test_model_all_inputs_as_internal() { static TestModel model = { .main = { .operands = {{ // op1 .type = TestOperandType::TENSOR_QUANT8_ASYMM, .dimensions = {1, 2, 2, 1}, .numberOfConsumers = 1, .scale = 1.0f, .zeroPoint = 0, .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE, .channelQuant = {}, .isIgnored = false, .data = TestBuffer::createFromVector({}) }, { // op2 .type = TestOperandType::TENSOR_FLOAT32, .dimensions = {1, 2, 2, 1}, .numberOfConsumers = 0, .scale = 0.0f, .zeroPoint = 0, .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT, .channelQuant = {}, .isIgnored = false, .data = TestBuffer::createFromVector({0.0f, 32.0f, 128.0f, 255.0f}) }, { // op1_new .type = TestOperandType::TENSOR_QUANT8_ASYMM, .dimensions = {1, 2, 2, 1}, .numberOfConsumers = 1, .scale = 1.0f, .zeroPoint = 0, .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT, .channelQuant = {}, .isIgnored = false, .data = TestBuffer::createFromVector({0, 32, 128, 255}) }, { // placeholder .type = TestOperandType::TENSOR_QUANT8_ASYMM, .dimensions = {1}, .numberOfConsumers = 1, .scale = 1.0f, .zeroPoint = 0, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .channelQuant = {}, .isIgnored = false, .data = TestBuffer::createFromVector({0}) }, { // param .type = TestOperandType::INT32, .dimensions = {}, .numberOfConsumers = 1, .scale = 0.0f, .zeroPoint = 0, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .channelQuant = {}, .isIgnored = false, .data = TestBuffer::createFromVector({0}) }}, .operations = {{ .type = TestOperationType::ADD, .inputs = {2, 3, 4}, .outputs = {0} }, { .type = TestOperationType::DEQUANTIZE, .inputs = {0}, .outputs = {1} }}, .inputIndexes = {2}, .outputIndexes = {1} }, .referenced = {}, .isRelaxed = false, .expectedMultinomialDistributionTolerance = 0, .expectFailure = false, .minSupportedVersion = TestHalVersion::V1_0 }; return model; } const auto dummy_test_model_all_inputs_as_internal = TestModelManager::get().add("dequantize_all_inputs_as_internal", get_test_model_all_inputs_as_internal()); } // namespace generated_tests::dequantize