Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/kernels/
Dcrop_and_resize_op_test.cc418 const int kHalf = (kLength + 1) / 2; // Half size for the cropped result. in TEST_F() local
430 AddInputFromArray<int32>(TensorShape({2}), {kHalf, kHalf}); in TEST_F()
439 Tensor result1(allocator(), DT_FLOAT, TensorShape({1, kHalf, kHalf, 1})); in TEST_F()
440 test::FillFn<float>(&result1, [](int i) -> float { return i % kHalf; }); in TEST_F()
446 Tensor result2(allocator(), DT_FLOAT, TensorShape({1, kHalf, kHalf, 1})); in TEST_F()
448 [](int i) -> float { return i % kHalf + kHalf - 1; }); in TEST_F()
451 Tensor expected(allocator(), DT_FLOAT, TensorShape({2, kHalf, kHalf, 1})); in TEST_F()
/external/skqp/src/core/
DSkMaskBlurFilter.cpp198 static constexpr uint64_t kHalf = static_cast<uint64_t>(1) << 31; member in __anonacbeb4cd0111::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.cpp198 static constexpr uint64_t kHalf = static_cast<uint64_t>(1) << 31; member in __anon824049760111::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/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()
DGrFillRectOp.cpp179 fWideColor ? ColorType::kHalf : ColorType::kByte, in onPrepareDraws()
DGrTextureOp.cpp357 VertexSpec vertexSpec(quadType, wideColor ? ColorType::kHalf : ColorType::kByte, in onPrepareDraws()
/external/skia/src/gpu/ops/
DGrQuadPerEdgeAA.h26 enum class ColorType { kNone, kByte, kHalf, kLast = kHalf }; enumerator
DGrQuadPerEdgeAA.cpp640 bool wide = spec.colorType() == GrQuadPerEdgeAA::ColorType::kHalf; in write_quad()
692 return ColorType::kHalf; in MinColorType()
1012 } else if (ColorType::kHalf == spec.colorType()) { in initializeAttrs()
DGrFillRectOp.cpp155 if (fColorType == ColorType::kHalf && !caps.halfFloatVertexAttributeSupport()) { in finalize()
/external/tensorflow/tensorflow/stream_executor/
Ddnn.proto10 kHalf = 2; enumerator
Ddnn.h111 static constexpr DataType value = DataType::kHalf;
Dstream.cc187 case dnn::DataType::kHalf: in ToVlogString()
/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/skia/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/skia/src/sksl/
DSkSLSPIRVCodeGenerator.h67 kHalf, enumerator
DSkSLSPIRVCodeGenerator.cpp2460 type = ConstantType::kHalf; in writeFloatLiteral()
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_dnn.cc852 case dnn::DataType::kHalf: in ToCudnnDataType()
2568 case dnn::DataType::kHalf: in GetRnnComputeType()
2584 case dnn::DataType::kHalf: in GetConvAccumulatorType()
2587 : dnn::DataType::kHalf; in GetConvAccumulatorType()
3213 stream, dnn::DataType::kHalf, dnn::DataType::kFloat, x, scale, offset, in DoBatchNormalizationForward()
3411 GetConvAccumulatorType(dnn::DataType::kHalf), scratch_allocator, in DoFusedConvolve()
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_dnn.cc1539 case dnn::DataType::kHalf: in ToMIOpenDataType()
1612 case dnn::DataType::kHalf: in GetConvAccumulatorType()
3009 stream, dnn::DataType::kHalf, dnn::DataType::kFloat, x, scale, offset, in DoBatchNormalizationForward()