Searched refs:SafeCast (Results 1 – 9 of 9) sorted by relevance
36 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(0.0)), in RunSafeCastTests()38 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-0.0)), in RunSafeCastTests()40 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(0.99)), in RunSafeCastTests()42 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.0)), in RunSafeCastTests()44 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.01)), in RunSafeCastTests()46 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.99)), in RunSafeCastTests()48 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(2.0)), in RunSafeCastTests()50 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(2.01)), in RunSafeCastTests()52 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-0.99)), in RunSafeCastTests()54 TF_LITE_MICRO_EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-1.0)), in RunSafeCastTests()[all …]
42 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(0.0)), 0); in RunSafeCastTests()43 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-0.0)), 0); in RunSafeCastTests()44 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(0.99)), 0); in RunSafeCastTests()45 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.0)), 1); in RunSafeCastTests()46 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.01)), 1); in RunSafeCastTests()47 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(1.99)), 1); in RunSafeCastTests()48 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(2.0)), 2); in RunSafeCastTests()49 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(2.01)), 2); in RunSafeCastTests()50 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-0.99)), 0); in RunSafeCastTests()51 EXPECT_EQ(SafeCast<IntOut>(static_cast<FloatIn>(-1.0)), s ? -1 : 0); in RunSafeCastTests()[all …]
128 IntOut SafeCast(FloatIn x) { in SafeCast() function
31 MessageType* SafeCast() { in COMPONENT_EXPORT()
152 auto integer_val = tflite::SafeCast<DataType<A>>(std::round(scaled_val)); in QuantizeBuffer()
211 generic_context.release()->template SafeCast<MessageType>()); in COMPONENT_EXPORT()
65 msgs::TypeEnumValidator::SafeCast(message_type.value()); in DecodeType()
612 tflite::SafeCast<BiasType>(TfLiteRound(data[idx] * scaling_factor_inv)); in SymmetricBiasQuantize()
META-INF/ META-INF/MANIFEST.MF META-INF/backend-common. ...