// Generated from pad_quant8_nonzero.mod.py // DO NOT EDIT // clang-format off #include "TestHarness.h" using namespace test_helper; namespace generated_tests::pad_quant8_nonzero { const TestModel& get_test_model() { static TestModel model = { .expectFailure = false, .expectedMultinomialDistributionTolerance = 0, .isRelaxed = false, .main = { .inputIndexes = {0}, .operands = {{ // input0 .channelQuant = {}, .data = TestBuffer::createFromVector({1, 2, 3, 4, 5, 6}), .dimensions = {1, 2, 3, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT, .numberOfConsumers = 1, .scale = 2.3f, .type = TestOperandType::TENSOR_QUANT8_ASYMM, .zeroPoint = 9 }, { // paddings .channelQuant = {}, .data = TestBuffer::createFromVector({0, 0, 0, 2, 1, 3, 0, 0}), .dimensions = {4, 2}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 0.0f, .type = TestOperandType::TENSOR_INT32, .zeroPoint = 0 }, { // output0 .channelQuant = {}, .data = TestBuffer::createFromVector({9, 1, 2, 3, 9, 9, 9, 9, 4, 5, 6, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9}), .dimensions = {1, 4, 7, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT, .numberOfConsumers = 0, .scale = 2.3f, .type = TestOperandType::TENSOR_QUANT8_ASYMM, .zeroPoint = 9 }}, .operations = {{ .inputs = {0, 1}, .outputs = {2}, .type = TestOperationType::PAD }}, .outputIndexes = {2} }, .minSupportedVersion = TestHalVersion::V1_2, .referenced = {} }; return model; } const auto dummy_test_model = TestModelManager::get().add("pad_quant8_nonzero", get_test_model()); } // namespace generated_tests::pad_quant8_nonzero namespace generated_tests::pad_quant8_nonzero { const TestModel& get_test_model_all_inputs_as_internal() { static TestModel model = { .expectFailure = false, .expectedMultinomialDistributionTolerance = 0, .isRelaxed = false, .main = { .inputIndexes = {3}, .operands = {{ // input0 .channelQuant = {}, .data = TestBuffer::createFromVector({}), .dimensions = {1, 2, 3, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::TEMPORARY_VARIABLE, .numberOfConsumers = 1, .scale = 2.3f, .type = TestOperandType::TENSOR_QUANT8_ASYMM, .zeroPoint = 9 }, { // paddings .channelQuant = {}, .data = TestBuffer::createFromVector({0, 0, 0, 2, 1, 3, 0, 0}), .dimensions = {4, 2}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 0.0f, .type = TestOperandType::TENSOR_INT32, .zeroPoint = 0 }, { // output0 .channelQuant = {}, .data = TestBuffer::createFromVector({9, 1, 2, 3, 9, 9, 9, 9, 4, 5, 6, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9}), .dimensions = {1, 4, 7, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_OUTPUT, .numberOfConsumers = 0, .scale = 2.3f, .type = TestOperandType::TENSOR_QUANT8_ASYMM, .zeroPoint = 9 }, { // input0_new .channelQuant = {}, .data = TestBuffer::createFromVector({1, 2, 3, 4, 5, 6}), .dimensions = {1, 2, 3, 1}, .isIgnored = false, .lifetime = TestOperandLifeTime::SUBGRAPH_INPUT, .numberOfConsumers = 1, .scale = 2.3f, .type = TestOperandType::TENSOR_QUANT8_ASYMM, .zeroPoint = 9 }, { // dummy .channelQuant = {}, .data = TestBuffer::createFromVector({9}), .dimensions = {1}, .isIgnored = false, .lifetime = TestOperandLifeTime::CONSTANT_COPY, .numberOfConsumers = 1, .scale = 2.3f, .type = TestOperandType::TENSOR_QUANT8_ASYMM, .zeroPoint = 9 }, { // 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::PAD }}, .outputIndexes = {2} }, .minSupportedVersion = TestHalVersion::V1_2, .referenced = {} }; return model; } const auto dummy_test_model_all_inputs_as_internal = TestModelManager::get().add("pad_quant8_nonzero_all_inputs_as_internal", get_test_model_all_inputs_as_internal()); } // namespace generated_tests::pad_quant8_nonzero