| // Generated from cast.mod.py | |
| // DO NOT EDIT | |
| // clang-format off | |
| #include "TestGenerated.h" | |
| namespace generated_tests::cast { | |
| void CreateModel(Model *model); | |
| bool is_ignored(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_float16(); | |
| TEST_F(GeneratedTests, cast_float16_to_float16) { | |
| execute(CreateModel, | |
| is_ignored, | |
| get_examples_float16_to_float16()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float16_to_float16, generated_tests::cast::CreateModel) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape(Model *model); | |
| bool is_ignored_dynamic_output_shape(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_float16_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float16_to_float16_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape, | |
| is_ignored_dynamic_output_shape, | |
| get_examples_float16_to_float16_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_2(Model *model); | |
| bool is_ignored_2(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_float32(); | |
| TEST_F(GeneratedTests, cast_float16_to_float32) { | |
| execute(CreateModel_2, | |
| is_ignored_2, | |
| get_examples_float16_to_float32()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float16_to_float32, generated_tests::cast::CreateModel_2) | |
| namespace generated_tests::cast { | |
| void CreateModel_relaxed(Model *model); | |
| bool is_ignored_relaxed(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_float32_relaxed(); | |
| TEST_F(GeneratedTests, cast_float16_to_float32_relaxed) { | |
| execute(CreateModel_relaxed, | |
| is_ignored_relaxed, | |
| get_examples_float16_to_float32_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_2(Model *model); | |
| bool is_ignored_dynamic_output_shape_2(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_float32_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float16_to_float32_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_2, | |
| is_ignored_dynamic_output_shape_2, | |
| get_examples_float16_to_float32_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_relaxed(Model *model); | |
| bool is_ignored_dynamic_output_shape_relaxed(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_float32_dynamic_output_shape_relaxed(); | |
| TEST_F(DynamicOutputShapeTest, cast_float16_to_float32_dynamic_output_shape_relaxed) { | |
| execute(CreateModel_dynamic_output_shape_relaxed, | |
| is_ignored_dynamic_output_shape_relaxed, | |
| get_examples_float16_to_float32_dynamic_output_shape_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_3(Model *model); | |
| bool is_ignored_3(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_int32(); | |
| TEST_F(GeneratedTests, cast_float16_to_int32) { | |
| execute(CreateModel_3, | |
| is_ignored_3, | |
| get_examples_float16_to_int32()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float16_to_int32, generated_tests::cast::CreateModel_3) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_3(Model *model); | |
| bool is_ignored_dynamic_output_shape_3(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_int32_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float16_to_int32_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_3, | |
| is_ignored_dynamic_output_shape_3, | |
| get_examples_float16_to_int32_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_4(Model *model); | |
| bool is_ignored_4(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_quant8(); | |
| TEST_F(GeneratedTests, cast_float16_to_quant8) { | |
| execute(CreateModel_4, | |
| is_ignored_4, | |
| get_examples_float16_to_quant8()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float16_to_quant8, generated_tests::cast::CreateModel_4) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_4(Model *model); | |
| bool is_ignored_dynamic_output_shape_4(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_quant8_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float16_to_quant8_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_4, | |
| is_ignored_dynamic_output_shape_4, | |
| get_examples_float16_to_quant8_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_5(Model *model); | |
| bool is_ignored_5(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_float16(); | |
| TEST_F(GeneratedTests, cast_float32_to_float16) { | |
| execute(CreateModel_5, | |
| is_ignored_5, | |
| get_examples_float32_to_float16()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float32_to_float16, generated_tests::cast::CreateModel_5) | |
| namespace generated_tests::cast { | |
| void CreateModel_relaxed_2(Model *model); | |
| bool is_ignored_relaxed_2(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_float16_relaxed(); | |
| TEST_F(GeneratedTests, cast_float32_to_float16_relaxed) { | |
| execute(CreateModel_relaxed_2, | |
| is_ignored_relaxed_2, | |
| get_examples_float32_to_float16_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_5(Model *model); | |
| bool is_ignored_dynamic_output_shape_5(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_float16_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_float16_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_5, | |
| is_ignored_dynamic_output_shape_5, | |
| get_examples_float32_to_float16_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_relaxed_2(Model *model); | |
| bool is_ignored_dynamic_output_shape_relaxed_2(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_float16_dynamic_output_shape_relaxed(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_float16_dynamic_output_shape_relaxed) { | |
| execute(CreateModel_dynamic_output_shape_relaxed_2, | |
| is_ignored_dynamic_output_shape_relaxed_2, | |
| get_examples_float32_to_float16_dynamic_output_shape_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_6(Model *model); | |
| bool is_ignored_6(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_float32(); | |
| TEST_F(GeneratedTests, cast_float32_to_float32) { | |
| execute(CreateModel_6, | |
| is_ignored_6, | |
| get_examples_float32_to_float32()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float32_to_float32, generated_tests::cast::CreateModel_6) | |
| namespace generated_tests::cast { | |
| void CreateModel_relaxed_3(Model *model); | |
| bool is_ignored_relaxed_3(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_float32_relaxed(); | |
| TEST_F(GeneratedTests, cast_float32_to_float32_relaxed) { | |
| execute(CreateModel_relaxed_3, | |
| is_ignored_relaxed_3, | |
| get_examples_float32_to_float32_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_6(Model *model); | |
| bool is_ignored_dynamic_output_shape_6(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_float32_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_float32_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_6, | |
| is_ignored_dynamic_output_shape_6, | |
| get_examples_float32_to_float32_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_relaxed_3(Model *model); | |
| bool is_ignored_dynamic_output_shape_relaxed_3(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_float32_dynamic_output_shape_relaxed(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_float32_dynamic_output_shape_relaxed) { | |
| execute(CreateModel_dynamic_output_shape_relaxed_3, | |
| is_ignored_dynamic_output_shape_relaxed_3, | |
| get_examples_float32_to_float32_dynamic_output_shape_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_7(Model *model); | |
| bool is_ignored_7(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_int32(); | |
| TEST_F(GeneratedTests, cast_float32_to_int32) { | |
| execute(CreateModel_7, | |
| is_ignored_7, | |
| get_examples_float32_to_int32()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float32_to_int32, generated_tests::cast::CreateModel_7) | |
| namespace generated_tests::cast { | |
| void CreateModel_relaxed_4(Model *model); | |
| bool is_ignored_relaxed_4(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_int32_relaxed(); | |
| TEST_F(GeneratedTests, cast_float32_to_int32_relaxed) { | |
| execute(CreateModel_relaxed_4, | |
| is_ignored_relaxed_4, | |
| get_examples_float32_to_int32_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_7(Model *model); | |
| bool is_ignored_dynamic_output_shape_7(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_int32_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_int32_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_7, | |
| is_ignored_dynamic_output_shape_7, | |
| get_examples_float32_to_int32_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_relaxed_4(Model *model); | |
| bool is_ignored_dynamic_output_shape_relaxed_4(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_int32_dynamic_output_shape_relaxed(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_int32_dynamic_output_shape_relaxed) { | |
| execute(CreateModel_dynamic_output_shape_relaxed_4, | |
| is_ignored_dynamic_output_shape_relaxed_4, | |
| get_examples_float32_to_int32_dynamic_output_shape_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_8(Model *model); | |
| bool is_ignored_8(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_quant8(); | |
| TEST_F(GeneratedTests, cast_float32_to_quant8) { | |
| execute(CreateModel_8, | |
| is_ignored_8, | |
| get_examples_float32_to_quant8()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float32_to_quant8, generated_tests::cast::CreateModel_8) | |
| namespace generated_tests::cast { | |
| void CreateModel_relaxed_5(Model *model); | |
| bool is_ignored_relaxed_5(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_quant8_relaxed(); | |
| TEST_F(GeneratedTests, cast_float32_to_quant8_relaxed) { | |
| execute(CreateModel_relaxed_5, | |
| is_ignored_relaxed_5, | |
| get_examples_float32_to_quant8_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_8(Model *model); | |
| bool is_ignored_dynamic_output_shape_8(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_quant8_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_quant8_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_8, | |
| is_ignored_dynamic_output_shape_8, | |
| get_examples_float32_to_quant8_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_relaxed_5(Model *model); | |
| bool is_ignored_dynamic_output_shape_relaxed_5(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_quant8_dynamic_output_shape_relaxed(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_quant8_dynamic_output_shape_relaxed) { | |
| execute(CreateModel_dynamic_output_shape_relaxed_5, | |
| is_ignored_dynamic_output_shape_relaxed_5, | |
| get_examples_float32_to_quant8_dynamic_output_shape_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_9(Model *model); | |
| bool is_ignored_9(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_float16(); | |
| TEST_F(GeneratedTests, cast_int32_to_float16) { | |
| execute(CreateModel_9, | |
| is_ignored_9, | |
| get_examples_int32_to_float16()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_int32_to_float16, generated_tests::cast::CreateModel_9) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_9(Model *model); | |
| bool is_ignored_dynamic_output_shape_9(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_float16_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_int32_to_float16_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_9, | |
| is_ignored_dynamic_output_shape_9, | |
| get_examples_int32_to_float16_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_10(Model *model); | |
| bool is_ignored_10(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_float32(); | |
| TEST_F(GeneratedTests, cast_int32_to_float32) { | |
| execute(CreateModel_10, | |
| is_ignored_10, | |
| get_examples_int32_to_float32()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_int32_to_float32, generated_tests::cast::CreateModel_10) | |
| namespace generated_tests::cast { | |
| void CreateModel_relaxed_6(Model *model); | |
| bool is_ignored_relaxed_6(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_float32_relaxed(); | |
| TEST_F(GeneratedTests, cast_int32_to_float32_relaxed) { | |
| execute(CreateModel_relaxed_6, | |
| is_ignored_relaxed_6, | |
| get_examples_int32_to_float32_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_10(Model *model); | |
| bool is_ignored_dynamic_output_shape_10(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_float32_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_int32_to_float32_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_10, | |
| is_ignored_dynamic_output_shape_10, | |
| get_examples_int32_to_float32_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_relaxed_6(Model *model); | |
| bool is_ignored_dynamic_output_shape_relaxed_6(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_float32_dynamic_output_shape_relaxed(); | |
| TEST_F(DynamicOutputShapeTest, cast_int32_to_float32_dynamic_output_shape_relaxed) { | |
| execute(CreateModel_dynamic_output_shape_relaxed_6, | |
| is_ignored_dynamic_output_shape_relaxed_6, | |
| get_examples_int32_to_float32_dynamic_output_shape_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_11(Model *model); | |
| bool is_ignored_11(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_int32(); | |
| TEST_F(GeneratedTests, cast_int32_to_int32) { | |
| execute(CreateModel_11, | |
| is_ignored_11, | |
| get_examples_int32_to_int32()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_int32_to_int32, generated_tests::cast::CreateModel_11) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_11(Model *model); | |
| bool is_ignored_dynamic_output_shape_11(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_int32_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_int32_to_int32_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_11, | |
| is_ignored_dynamic_output_shape_11, | |
| get_examples_int32_to_int32_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_12(Model *model); | |
| bool is_ignored_12(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_quant8(); | |
| TEST_F(GeneratedTests, cast_int32_to_quant8) { | |
| execute(CreateModel_12, | |
| is_ignored_12, | |
| get_examples_int32_to_quant8()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_int32_to_quant8, generated_tests::cast::CreateModel_12) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_12(Model *model); | |
| bool is_ignored_dynamic_output_shape_12(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_quant8_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_int32_to_quant8_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_12, | |
| is_ignored_dynamic_output_shape_12, | |
| get_examples_int32_to_quant8_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_13(Model *model); | |
| bool is_ignored_13(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_float16(); | |
| TEST_F(GeneratedTests, cast_quant8_to_float16) { | |
| execute(CreateModel_13, | |
| is_ignored_13, | |
| get_examples_quant8_to_float16()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_quant8_to_float16, generated_tests::cast::CreateModel_13) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_13(Model *model); | |
| bool is_ignored_dynamic_output_shape_13(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_float16_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_quant8_to_float16_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_13, | |
| is_ignored_dynamic_output_shape_13, | |
| get_examples_quant8_to_float16_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_14(Model *model); | |
| bool is_ignored_14(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_float32(); | |
| TEST_F(GeneratedTests, cast_quant8_to_float32) { | |
| execute(CreateModel_14, | |
| is_ignored_14, | |
| get_examples_quant8_to_float32()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_quant8_to_float32, generated_tests::cast::CreateModel_14) | |
| namespace generated_tests::cast { | |
| void CreateModel_relaxed_7(Model *model); | |
| bool is_ignored_relaxed_7(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_float32_relaxed(); | |
| TEST_F(GeneratedTests, cast_quant8_to_float32_relaxed) { | |
| execute(CreateModel_relaxed_7, | |
| is_ignored_relaxed_7, | |
| get_examples_quant8_to_float32_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_14(Model *model); | |
| bool is_ignored_dynamic_output_shape_14(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_float32_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_quant8_to_float32_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_14, | |
| is_ignored_dynamic_output_shape_14, | |
| get_examples_quant8_to_float32_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_relaxed_7(Model *model); | |
| bool is_ignored_dynamic_output_shape_relaxed_7(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_float32_dynamic_output_shape_relaxed(); | |
| TEST_F(DynamicOutputShapeTest, cast_quant8_to_float32_dynamic_output_shape_relaxed) { | |
| execute(CreateModel_dynamic_output_shape_relaxed_7, | |
| is_ignored_dynamic_output_shape_relaxed_7, | |
| get_examples_quant8_to_float32_dynamic_output_shape_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_15(Model *model); | |
| bool is_ignored_15(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_int32(); | |
| TEST_F(GeneratedTests, cast_quant8_to_int32) { | |
| execute(CreateModel_15, | |
| is_ignored_15, | |
| get_examples_quant8_to_int32()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_quant8_to_int32, generated_tests::cast::CreateModel_15) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_15(Model *model); | |
| bool is_ignored_dynamic_output_shape_15(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_int32_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_quant8_to_int32_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_15, | |
| is_ignored_dynamic_output_shape_15, | |
| get_examples_quant8_to_int32_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_16(Model *model); | |
| bool is_ignored_16(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_quant8(); | |
| TEST_F(GeneratedTests, cast_quant8_to_quant8) { | |
| execute(CreateModel_16, | |
| is_ignored_16, | |
| get_examples_quant8_to_quant8()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_quant8_to_quant8, generated_tests::cast::CreateModel_16) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_16(Model *model); | |
| bool is_ignored_dynamic_output_shape_16(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_quant8_to_quant8_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_quant8_to_quant8_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_16, | |
| is_ignored_dynamic_output_shape_16, | |
| get_examples_quant8_to_quant8_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_17(Model *model); | |
| bool is_ignored_17(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_quant8_overflow(); | |
| TEST_F(GeneratedTests, cast_float16_to_quant8_overflow) { | |
| execute(CreateModel_17, | |
| is_ignored_17, | |
| get_examples_float16_to_quant8_overflow()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float16_to_quant8_overflow, generated_tests::cast::CreateModel_17) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_17(Model *model); | |
| bool is_ignored_dynamic_output_shape_17(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float16_to_quant8_overflow_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float16_to_quant8_overflow_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_17, | |
| is_ignored_dynamic_output_shape_17, | |
| get_examples_float16_to_quant8_overflow_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_18(Model *model); | |
| bool is_ignored_18(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_quant8_overflow(); | |
| TEST_F(GeneratedTests, cast_float32_to_quant8_overflow) { | |
| execute(CreateModel_18, | |
| is_ignored_18, | |
| get_examples_float32_to_quant8_overflow()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_float32_to_quant8_overflow, generated_tests::cast::CreateModel_18) | |
| namespace generated_tests::cast { | |
| void CreateModel_relaxed_8(Model *model); | |
| bool is_ignored_relaxed_8(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_quant8_overflow_relaxed(); | |
| TEST_F(GeneratedTests, cast_float32_to_quant8_overflow_relaxed) { | |
| execute(CreateModel_relaxed_8, | |
| is_ignored_relaxed_8, | |
| get_examples_float32_to_quant8_overflow_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_18(Model *model); | |
| bool is_ignored_dynamic_output_shape_18(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_quant8_overflow_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_quant8_overflow_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_18, | |
| is_ignored_dynamic_output_shape_18, | |
| get_examples_float32_to_quant8_overflow_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_relaxed_8(Model *model); | |
| bool is_ignored_dynamic_output_shape_relaxed_8(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_float32_to_quant8_overflow_dynamic_output_shape_relaxed(); | |
| TEST_F(DynamicOutputShapeTest, cast_float32_to_quant8_overflow_dynamic_output_shape_relaxed) { | |
| execute(CreateModel_dynamic_output_shape_relaxed_8, | |
| is_ignored_dynamic_output_shape_relaxed_8, | |
| get_examples_float32_to_quant8_overflow_dynamic_output_shape_relaxed()); | |
| } | |
| } // namespace generated_tests::cast | |
| namespace generated_tests::cast { | |
| void CreateModel_19(Model *model); | |
| bool is_ignored_19(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_quant8_overflow(); | |
| TEST_F(GeneratedTests, cast_int32_to_quant8_overflow) { | |
| execute(CreateModel_19, | |
| is_ignored_19, | |
| get_examples_int32_to_quant8_overflow()); | |
| } | |
| } // namespace generated_tests::cast | |
| TEST_AVAILABLE_SINCE(V1_2, cast_int32_to_quant8_overflow, generated_tests::cast::CreateModel_19) | |
| namespace generated_tests::cast { | |
| void CreateModel_dynamic_output_shape_19(Model *model); | |
| bool is_ignored_dynamic_output_shape_19(int); | |
| std::vector<::test_helper::MixedTypedExample>& get_examples_int32_to_quant8_overflow_dynamic_output_shape(); | |
| TEST_F(DynamicOutputShapeTest, cast_int32_to_quant8_overflow_dynamic_output_shape) { | |
| execute(CreateModel_dynamic_output_shape_19, | |
| is_ignored_dynamic_output_shape_19, | |
| get_examples_int32_to_quant8_overflow_dynamic_output_shape()); | |
| } | |
| } // namespace generated_tests::cast | |