Home
last modified time | relevance | path

Searched refs:Float32ToFloat16 (Results 1 – 25 of 36) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp140 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/
DMathTests.cpp224 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/
DShaderFloat16Tests.cpp44 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()
DVertexFormatTests.cpp30 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()
DStorageTextureTests.cpp132 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/
DFloat32ToFloat16.S20 .global Float32ToFloat16 symbol
22 .type Float32ToFloat16, %function
27 Float32ToFloat16: label
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/fp16/
Dfused_batchnorm_fp16.cc99Float32ToFloat16(reinterpret_cast<float *>(input->data()), reinterpret_cast<float16_t *>(input_fp1… in DoExecute()
101Float32ToFloat16(reinterpret_cast<float *>(scale->data()), reinterpret_cast<float16_t *>(scale_fp1… in DoExecute()
103Float32ToFloat16(reinterpret_cast<float *>(offset->data()), reinterpret_cast<float16_t *>(offset_f… in DoExecute()
105Float32ToFloat16(reinterpret_cast<float *>(mean->data()), reinterpret_cast<float16_t *>(mean_fp16), in DoExecute()
107Float32ToFloat16(reinterpret_cast<float *>(variance->data()), reinterpret_cast<float16_t *>(varian… in DoExecute()
Dcommon_fp16.cc35 Float32ToFloat16(ori_data, fp16_data, ele_num); in ConvertInputFp32toFp16()
70Float32ToFloat16(static_cast<float *>(fp32_data), static_cast<float16_t *>(tensor->data()), tensor… in ConvertFp32TensorToFp16()
Dbatchnorm_fp16.cc47Float32ToFloat16(reinterpret_cast<float *>(mean_fp32->data()), reinterpret_cast<float16_t *>(mean_… in InitConstTensor()
49Float32ToFloat16(reinterpret_cast<float *>(variance_fp32->data()), reinterpret_cast<float16_t *>(v… in InitConstTensor()
Dinstance_norm_fp16.cc56 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()
Dgather_fp16.cc55Float32ToFloat16(reinterpret_cast<float *>(input_tensor->data()), input_data_, input_tensor->Eleme… in Init()
150Float32ToFloat16(reinterpret_cast<float *>(input_tensor->data()), input_data_, input_tensor->Eleme… in Run()
Dfp16_op_handler.h30Float32ToFloat16(reinterpret_cast<const float *>(input), reinterpret_cast<float16_t *>(output), nu… in Float32ToFloat16_fp16_handler()
Dmatmul_base_fp16.cc168Float32ToFloat16(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()
Dslice_fp16.cc55Float32ToFloat16(reinterpret_cast<float *>(input_tensor->data()), input_data_, input_tensor->Eleme… in Init()
Dcast_fp16.cc120 Float32ToFloat16(reinterpret_cast<float *>(input_data) + offset, in DoCast()
Dconcat_fp16.cc107 Float32ToFloat16(in_tensor_data, fp16_inputs_[i], in_tensor->ElementsNum()); in Run()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16/
Dcast_fp16.h52 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);
Dlstm_fp16.c48 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/
DMath.h53 uint16_t Float32ToFloat16(float fp32);
DMath.cpp84 uint16_t Float32ToFloat16(float fp32) { in Float32ToFloat16() function
/third_party/mindspore/mindspore/lite/src/delegate/npu/
Dnpu_converter_utils.h68 void Float32ToFloat16(const float *__restrict input, float16_t *__restrict output, int number);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/assembly/fp16/
DFloat32ToFloat16.S24 asm_function Float32ToFloat16
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DVertexFormatTests.cpp30 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/
DMath.cpp101 uint16_t Float32ToFloat16(float fp32) { in Float32ToFloat16() function
DMath.h88 uint16_t Float32ToFloat16(float fp32);

12