Home
last modified time | relevance | path

Searched refs:kHalf (Results 1 – 25 of 39) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/image/
Dcrop_and_resize_op_test.cc417 const int kHalf = (kLength + 1) / 2; // Half size for the cropped result. in TEST_F() local
429 AddInputFromArray<int32>(TensorShape({2}), {kHalf, kHalf}); in TEST_F()
438 Tensor result1(allocator(), DT_FLOAT, TensorShape({1, kHalf, kHalf, 1})); in TEST_F()
439 test::FillFn<float>(&result1, [=](int i) -> float { return i % kHalf; }); in TEST_F()
445 Tensor result2(allocator(), DT_FLOAT, TensorShape({1, kHalf, kHalf, 1})); in TEST_F()
447 [=](int i) -> float { return i % kHalf + kHalf - 1; }); in TEST_F()
450 Tensor expected(allocator(), DT_FLOAT, TensorShape({2, kHalf, kHalf, 1})); in TEST_F()
/external/OpenCL-CTS/test_conformance/gl/
Dtest_images_write_common.cpp187 if (type == kHalf) in get_appropriate_write_kernel()
193 if (type == kHalf) in get_appropriate_write_kernel()
199 if (type == kHalf) in get_appropriate_write_kernel()
213 if (type == kHalf) in get_appropriate_write_kernel()
224 if (type == kHalf) in get_appropriate_write_kernel()
231 if (type == kHalf) in get_appropriate_write_kernel()
324 if (*outType == kHalf && !supports_half) { in test_cl_image_write()
493 if( type == kHalf ) in test_image_format_write()
577 if( error != 0 || ((sourceType == kHalf ) && !supports_half)) { in test_image_format_write()
588 if ( sourceType == kHalf ) in test_image_format_write()
[all …]
Dtest_renderbuffer.cpp91 if( type == kHalf ) in test_renderbuffer_read_image()
188 { GL_RGBA16F_ARB, GL_RGBA, GL_HALF_FLOAT, kHalf } in test_renderbuffer_read()
292 if( type == kHalf ) in test_renderbuffer_image_write()
325 if( error != 0 || ((sourceType == kHalf ) && !supports_half)) in test_renderbuffer_image_write()
329 if( sourceType == kHalf ) in test_renderbuffer_image_write()
367 if( sourceType == kFloat || sourceType == kHalf ) in test_renderbuffer_image_write()
405 { GL_RGBA16F_ARB, GL_RGBA, GL_HALF_FLOAT, kHalf } in test_renderbuffer_write()
Dtest_renderbuffer_info.cpp31 if( type == kHalf ) in test_renderbuffer_object_info()
68 { GL_RGBA16F_ARB, GL_RGBA, GL_HALF_FLOAT, kHalf } in test_renderbuffer_getinfo()
Dtest_images_getinfo_common.cpp99 if( fmt->type == kHalf ) in test_image_format_get_info()
126 if( fmt->type == kHalf ) in test_image_format_get_info()
Dcommon.h52 { GL_RGBA16F_ARB, GL_RGBA, GL_HALF_FLOAT, kHalf }
Dhelpers.cpp95 return kHalf; in get_write_kernel_type()
360 else if( inType == kHalf ) in convert_to_expected()
/external/skqp/src/core/
DSkMaskBlurFilter.cpp198 static constexpr uint64_t kHalf = static_cast<uint64_t>(1) << 31; member in __anon6ecf4bab0111::PlanGauss::Scan
201 return SkTo<uint8_t>((fWeight * sum + kHalf) >> 32); in finalScale()
328 static constexpr uint16_t kHalf = 0x80u; variable
553 Sk8h d0{kHalf}, d8{kHalf}; in blur_row()
563 d8 = Sk8h{kHalf}; in blur_row()
695 *d12 = v1 + kHalf; in blur_y_radius_1()
712 *d34 = v2 + kHalf; in blur_y_radius_2()
732 *d56 = v3 + kHalf; in blur_y_radius_3()
755 *d78 = v4 + kHalf; in blur_y_radius_4()
769 Sk8h d01{kHalf}, d12{kHalf}, d23{kHalf}, d34{kHalf}, in blur_column()
[all …]
/external/skia/src/core/
DSkMaskBlurFilter.cpp199 static constexpr uint64_t kHalf = static_cast<uint64_t>(1) << 31; member in __anon4450e0540111::PlanGauss::Scan
202 return SkTo<uint8_t>((fWeight * sum + kHalf) >> 32); in finalScale()
331 static constexpr uint16_t kHalf = 0x80u; variable
556 Sk8h d0{kHalf}, d8{kHalf}; in blur_row()
566 d8 = Sk8h{kHalf}; in blur_row()
698 *d12 = v1 + kHalf; in blur_y_radius_1()
715 *d34 = v2 + kHalf; in blur_y_radius_2()
735 *d56 = v3 + kHalf; in blur_y_radius_3()
758 *d78 = v4 + kHalf; in blur_y_radius_4()
772 Sk8h d01{kHalf}, d12{kHalf}, d23{kHalf}, d34{kHalf}, in blur_column()
[all …]
/external/webrtc/api/video/test/
Dcolor_space_unittest.cc68 static_cast<uint8_t>(ColorSpace::ChromaSiting::kHalf))); in TEST()
69 EXPECT_EQ(ColorSpace::ChromaSiting::kHalf, in TEST()
/external/skqp/src/gpu/ops/
DGrQuadPerEdgeAA.h26 enum class ColorType { kNone, kByte, kHalf, kLast = kHalf }; enumerator
DGrQuadPerEdgeAA.cpp405 bool wideColor = GrQuadPerEdgeAA::ColorType::kHalf == spec.colorType(); in Tessellate()
724 } else if (ColorType::kHalf == spec.colorType()) { in initializeAttrs()
/external/tensorflow/tensorflow/stream_executor/
Dhost_or_device_scalar.h74 : half_(value), is_pointer_(false), dtype_(DataType::kHalf) {} in HostOrDeviceScalar()
134 case DataType::kHalf: in opaque_value()
Ddata_type.h44 static constexpr DataType value = DataType::kHalf;
Dblas.cc100 case DataType::kHalf: in DataTypeString()
Ddnn.proto12 kHalf = 2; enumerator
/external/OpenCL-CTS/test_common/harness/
Dconversions.h46 kHalf, enumerator
/external/skia/modules/skottie/src/effects/
DDisplacementMapEffect.cpp104 kHalf, enumerator
158 || s == Selector::kHalf in IsConst()
/external/webrtc/api/video/
Dcolor_space.h120 kHalf = 2, enumerator
Dcolor_space.cc58 ColorSpace::ChromaSiting::kCollocated, ColorSpace::ChromaSiting::kHalf}; in SetChromaSitingFromUint8()
/external/OpenCL-CTS/test_conformance/gles/
Dhelpers.cpp56 return kHalf; in get_read_kernel_type()
83 return kHalf; in get_write_kernel_type()
Dtest_images_2D_info.cpp95 { GL_RGBA, GL_RGBA, GL_HALF_FLOAT_OES, kHalf }, in test_images_2D_getinfo()
/external/OpenCL-CTS/test_common/gles/
Dhelpers.cpp677 case kHalf: in GetGLTypeForExplicitType()
740 return kHalf; in GetExplicitTypeForGLType()
1054 case (kHalf): in CreateRandomData()
/external/skqp/gm/
Dbleed.cpp123 constexpr uint8_t kHalf = 0x80; in make_ringed_alpha_bitmap() local
127 kPremul_SkAlphaType, kZero, kOne, k3Q, kHalf); in make_ringed_alpha_bitmap()
/external/OpenCL-CTS/test_common/gl/
Dhelpers.cpp1280 case kHalf: *((cl_half *)p) = convert_float_to_half(val); break; in CreateGLTexture2DMultisample()
1542 case kHalf: *((cl_half *)p) = convert_float_to_half(val); break; in CreateGLTexture2DArrayMultisample()
1847 case kHalf: in GetGLTypeForExplicitType()
1917 return kHalf; in GetExplicitTypeForGLType()
2248 case (kHalf): in CreateRandomData()

12