/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/ |
D | MathTests.cpp | 140 TEST(Math, Float32ToFloat16) { in TEST() argument 141 ASSERT_EQ(Float32ToFloat16(0.0f), 0x0000); in TEST() 142 ASSERT_EQ(Float32ToFloat16(-0.0f), 0x8000); in TEST() 144 ASSERT_EQ(Float32ToFloat16(INFINITY), 0x7C00); in TEST() 145 ASSERT_EQ(Float32ToFloat16(-INFINITY), 0xFC00); in TEST() 148 uint16_t nan16 = Float32ToFloat16(NAN); in TEST() 151 ASSERT_EQ(Float32ToFloat16(1.0f), 0x3C00); in TEST() 158 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(1.0f))); in TEST() 159 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(INFINITY))); in TEST() 160 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(-INFINITY))); in TEST() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/unittests/ |
D | MathTests.cpp | 224 TEST(Math, Float32ToFloat16) { in TEST() argument 225 ASSERT_EQ(Float32ToFloat16(0.0f), 0x0000); in TEST() 226 ASSERT_EQ(Float32ToFloat16(-0.0f), 0x8000); in TEST() 228 ASSERT_EQ(Float32ToFloat16(INFINITY), 0x7C00); in TEST() 229 ASSERT_EQ(Float32ToFloat16(-INFINITY), 0xFC00); in TEST() 232 uint16_t nan16 = Float32ToFloat16(NAN); in TEST() 235 ASSERT_EQ(Float32ToFloat16(1.0f), 0x3C00); in TEST() 242 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(1.0f))); in TEST() 243 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(INFINITY))); in TEST() 244 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(-INFINITY))); in TEST() [all …]
|
/third_party/skia/third_party/externals/dawn/src/tests/end2end/ |
D | ShaderFloat16Tests.cpp | 44 uint16_t uniformData[] = {Float32ToFloat16(1.23), Float32ToFloat16(0.0)}; // 0.0 is a padding. in TEST_P() 48 uint16_t bufferInData[] = {Float32ToFloat16(2.34), Float32ToFloat16(0.0)}; // 0.0 is a padding. in TEST_P() 169 uint16_t expected[] = {Float32ToFloat16(3.57), Float32ToFloat16(0.0)}; // 0.0 is a padding. in TEST_P()
|
D | VertexFormatTests.cpp | 30 std::vector<uint16_t> Float32ToFloat16(std::vector<float> data) { in Float32ToFloat16() function 33 expectedData.push_back(Float32ToFloat16(element)); in Float32ToFloat16() 696 Float32ToFloat16(std::vector<float>({14.8f, -0.0f, 22.5f, 1.3f, +0.0f, -24.8f})); in TEST_P() 705 std::vector<uint16_t> vertexData = Float32ToFloat16(std::vector<float>( in TEST_P()
|
D | StorageTextureTests.cpp | 132 valuePtr[0] = Float32ToFloat16(static_cast<float_t>(pixelValue)); in FillExpectedData() 133 valuePtr[1] = Float32ToFloat16(-static_cast<float_t>(pixelValue)); in FillExpectedData() 134 valuePtr[2] = Float32ToFloat16(static_cast<float_t>(pixelValue * 2)); in FillExpectedData() 135 valuePtr[3] = Float32ToFloat16(-static_cast<float_t>(pixelValue * 2)); in FillExpectedData()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/arm82_aarch32_fp16/ |
D | Float32ToFloat16.S | 20 .global Float32ToFloat16 symbol 22 .type Float32ToFloat16, %function 27 Float32ToFloat16: label
|
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/ |
D | fused_batchnorm_fp16.cc | 99 …Float32ToFloat16(reinterpret_cast<float *>(input->data()), reinterpret_cast<float16_t *>(input_fp1… in DoExecute() 101 …Float32ToFloat16(reinterpret_cast<float *>(scale->data()), reinterpret_cast<float16_t *>(scale_fp1… in DoExecute() 103 …Float32ToFloat16(reinterpret_cast<float *>(offset->data()), reinterpret_cast<float16_t *>(offset_f… in DoExecute() 105 …Float32ToFloat16(reinterpret_cast<float *>(mean->data()), reinterpret_cast<float16_t *>(mean_fp16), in DoExecute() 107 …Float32ToFloat16(reinterpret_cast<float *>(variance->data()), reinterpret_cast<float16_t *>(varian… in DoExecute()
|
D | common_fp16.cc | 35 Float32ToFloat16(ori_data, fp16_data, ele_num); in ConvertInputFp32toFp16() 70 …Float32ToFloat16(static_cast<float *>(fp32_data), static_cast<float16_t *>(tensor->data()), tensor… in ConvertFp32TensorToFp16()
|
D | batchnorm_fp16.cc | 47 …Float32ToFloat16(reinterpret_cast<float *>(mean_fp32->data()), reinterpret_cast<float16_t *>(mean_… in InitConstTensor() 49 …Float32ToFloat16(reinterpret_cast<float *>(variance_fp32->data()), reinterpret_cast<float16_t *>(v… in InitConstTensor()
|
D | instance_norm_fp16.cc | 56 Float32ToFloat16(reinterpret_cast<float *>(gamma->data()), gamma_data_, gamma->ElementsNum()); in Init() 72 Float32ToFloat16(reinterpret_cast<float *>(beta->data()), beta_data_, beta->ElementsNum()); in Init()
|
D | gather_fp16.cc | 55 …Float32ToFloat16(reinterpret_cast<float *>(input_tensor->data()), input_data_, input_tensor->Eleme… in Init() 150 …Float32ToFloat16(reinterpret_cast<float *>(input_tensor->data()), input_data_, input_tensor->Eleme… in Run()
|
D | fp16_op_handler.h | 30 …Float32ToFloat16(reinterpret_cast<const float *>(input), reinterpret_cast<float16_t *>(output), nu… in Float32ToFloat16_fp16_handler()
|
D | matmul_base_fp16.cc | 168 …Float32ToFloat16(reinterpret_cast<const float *>(src_ptr), a_pack_ptr_, params_->batch * params_->… in InitMatrixA() 203 Float32ToFloat16(reinterpret_cast<const float *>(src_ptr), b_pack_ptr_, in InitMatrixB() 270 Float32ToFloat16(reinterpret_cast<float *>(b_tensor->data()), src_b_, in Init()
|
D | slice_fp16.cc | 55 …Float32ToFloat16(reinterpret_cast<float *>(input_tensor->data()), input_data_, input_tensor->Eleme… in Init()
|
D | cast_fp16.cc | 120 Float32ToFloat16(reinterpret_cast<float *>(input_data) + offset, in DoCast()
|
D | concat_fp16.cc | 107 Float32ToFloat16(in_tensor_data, fp16_inputs_[i], in_tensor->ElementsNum()); in Run()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/ |
D | cast_fp16.h | 52 inline void Float32ToFloat16(const float *__restrict input, float16_t *__restrict output, int numbe… in Float32ToFloat16() function 85 void Float32ToFloat16(const float *input, float16_t *output, int number);
|
D | lstm_fp16.c | 48 Float32ToFloat16(src_batch, dst_batch, col); in PackLstmBiasFp32ToFp16() 56 Float32ToFloat16(backward_src_batch, backward_dst_batch, col); in PackLstmBiasFp32ToFp16()
|
/third_party/flutter/skia/third_party/externals/dawn/src/common/ |
D | Math.h | 53 uint16_t Float32ToFloat16(float fp32);
|
D | Math.cpp | 84 uint16_t Float32ToFloat16(float fp32) { in Float32ToFloat16() function
|
/third_party/mindspore/mindspore/lite/src/delegate/npu/ |
D | npu_converter_utils.h | 68 void Float32ToFloat16(const float *__restrict input, float16_t *__restrict output, int number);
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/ |
D | Float32ToFloat16.S | 24 asm_function Float32ToFloat16
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | VertexFormatTests.cpp | 30 std::vector<uint16_t> Float32ToFloat16(std::vector<float> data) { in Float32ToFloat16() function 33 expectedData.push_back(Float32ToFloat16(element)); in Float32ToFloat16() 689 Float32ToFloat16(std::vector<float>({14.8f, -0.0f, 22.5f, 1.3f, +0.0f, -24.8f})); in TEST_P() 695 std::vector<uint16_t> vertexData = Float32ToFloat16(std::vector<float>( in TEST_P()
|
/third_party/skia/third_party/externals/dawn/src/common/ |
D | Math.cpp | 101 uint16_t Float32ToFloat16(float fp32) { in Float32ToFloat16() function
|
D | Math.h | 88 uint16_t Float32ToFloat16(float fp32);
|