Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/mlir_hlo/lib/utils/
Dhlo_utils.cc64 if (auto floatTy = ty.dyn_cast<FloatType>()) { in getScalarOfType() local
65 APFloat value(floatTy.getFloatSemantics(), rawValue); in getScalarOfType()
74 if (auto floatTy = complexTy.getElementType().cast<FloatType>()) { in getScalarOfType() local
75 APFloat real(floatTy.getFloatSemantics(), rawValue); in getScalarOfType()
76 APFloat imag = APFloat::getZero(floatTy.getFloatSemantics()); in getScalarOfType()
87 if (auto floatTy = ty.dyn_cast<FloatType>()) { in getScalarNegZeroOfType() local
89 APFloat::getZero(floatTy.getFloatSemantics(), /*Negative=*/true); in getScalarNegZeroOfType()
96 if (auto floatTy = complexTy.getElementType().cast<FloatType>()) { in getScalarNegZeroOfType() local
98 APFloat::getZero(floatTy.getFloatSemantics(), /*Negative=*/true); in getScalarNegZeroOfType()
106 static APFloat getScalarLimitOfFloatType(FloatType floatTy, ScalarLimit limit) { in getScalarLimitOfFloatType() argument
[all …]