Home
last modified time | relevance | path

Searched refs:SafeCast (Results 1 – 9 of 9) sorted by relevance

/external/tensorflow/tensorflow/lite/micro/kernels/
Dquantization_util_test.cc36 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 …]
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util_test.cc42 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 …]
Dquantization_util.h128 IntOut SafeCast(FloatIn x) { in SafeCast() function
/external/libchrome/mojo/public/cpp/bindings/lib/
Dunserialized_message_context.h31 MessageType* SafeCast() { in COMPONENT_EXPORT()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Dquantization_util.cc152 auto integer_val = tflite::SafeCast<DataType<A>>(std::round(scaled_val)); in QuantizeBuffer()
/external/libchrome/mojo/public/cpp/bindings/
Dmessage.h211 generic_context.release()->template SafeCast<MessageType>()); in COMPONENT_EXPORT()
/external/openscreen/osp/impl/
Dmessage_demuxer.cc65 msgs::TypeEnumValidator::SafeCast(message_type.value()); in DecodeType()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc612 tflite::SafeCast<BiasType>(TfLiteRound(data[idx] * scaling_factor_inv)); in SymmetricBiasQuantize()
/external/kotlinc/lib/
Dkotlin-compiler.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/backend-common. ...