Home
last modified time | relevance | path

Searched refs:FloatLiteral (Results 1 – 25 of 50) sorted by relevance

12

/external/skqp/src/sksl/ir/
DSkSLFloatLiteral.h19 struct FloatLiteral : public Expression { struct
20 FloatLiteral(const Context& context, int offset, double value) in FloatLiteral() argument
24 FloatLiteral(int offset, double value, const Type* type) in FloatLiteral() argument
41 FloatLiteral& f = (FloatLiteral&) other; in compareConstant() argument
50 return std::unique_ptr<Expression>(new FloatLiteral(fOffset, fValue, &fType)); in clone() argument
DSkSLPrefixExpression.h39 return std::unique_ptr<Expression>(new FloatLiteral( in constantPropagate()
42 -((FloatLiteral&) *fOperand).fValue)); in constantPropagate()
DSkSLVariableReference.cpp63 return std::unique_ptr<Expression>(new FloatLiteral( in copy_constant()
66 ((FloatLiteral*) expr)->fValue)); in copy_constant()
DSkSLConstructor.h39 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
107 const FloatLiteral fzero(context, -1, 0); in compareConstant()
DSkSLSwizzle.h118 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
/external/skia/src/sksl/ir/
DSkSLFloatLiteral.h19 struct FloatLiteral : public Expression { struct
20 FloatLiteral(const Context& context, int offset, double value) in FloatLiteral() argument
24 FloatLiteral(int offset, double value, const Type* type) in FloatLiteral() function
48 FloatLiteral& f = (FloatLiteral&) other; in compareConstant() argument
57 return std::unique_ptr<Expression>(new FloatLiteral(fOffset, fValue, &fType)); in clone() argument
DSkSLPrefixExpression.h39 return std::unique_ptr<Expression>(new FloatLiteral( in constantPropagate()
42 -((FloatLiteral&) *fOperand).fValue)); in constantPropagate()
DSkSLVariableReference.cpp63 return std::unique_ptr<Expression>(new FloatLiteral( in copy_constant()
66 ((FloatLiteral*) expr)->fValue)); in copy_constant()
DSkSLConstructor.h38 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
105 const FloatLiteral fzero(context, -1, 0); in compareConstant()
DSkSLSwizzle.h124 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dfake_quantize_ops.cc54 XlaHelpers::FloatLiteral( in XlaNudge()
57 XlaHelpers::FloatLiteral(b, data_type, quant_min_value); in XlaNudge()
60 XlaHelpers::FloatLiteral(b, data_type, quant_max_value); in XlaNudge()
74 xla::XlaOp one = XlaHelpers::FloatLiteral(b, data_type, 1.0f); in Quantize()
76 xla::XlaOp half = XlaHelpers::FloatLiteral(b, data_type, 0.5f); in Quantize()
113 XlaHelpers::FloatLiteral(b, data_type, nudged_input_min_); in Compile()
115 XlaHelpers::FloatLiteral(b, data_type, nudged_input_max_); in Compile()
117 XlaHelpers::FloatLiteral(b, data_type, input_scale_); in Compile()
163 XlaHelpers::FloatLiteral(b, data_type, nudged_input_min_); in Compile()
165 XlaHelpers::FloatLiteral(b, data_type, nudged_input_max_); in Compile()
Delu_op.cc69 const auto scale = XlaHelpers::FloatLiteral(b, input_type(0), in Compile()
71 const auto scale_alpha = XlaHelpers::FloatLiteral(b, input_type(0), in Compile()
88 const auto scale = XlaHelpers::FloatLiteral(b, input_type(0), in Compile()
90 const auto scale_alpha = XlaHelpers::FloatLiteral(b, input_type(0), in Compile()
Dimage_ops.cc53 auto norm = xla::Div(XlaHelpers::FloatLiteral(b, dtype, 1.0 / 6.0), range); in RGBToHSV()
58 XlaHelpers::FloatLiteral(b, dtype, 2.0 / 6.0)), in RGBToHSV()
60 XlaHelpers::FloatLiteral(b, dtype, 4.0 / 6.0))); in RGBToHSV()
76 auto one = XlaHelpers::FloatLiteral(b, dtype, 1.0); in HSVToRGB()
77 auto two = XlaHelpers::FloatLiteral(b, dtype, 2.0); in HSVToRGB()
78 auto three = XlaHelpers::FloatLiteral(b, dtype, 3.0); in HSVToRGB()
79 auto four = XlaHelpers::FloatLiteral(b, dtype, 4.0); in HSVToRGB()
80 auto six = XlaHelpers::FloatLiteral(b, dtype, 6.0); in HSVToRGB()
202 reduce, XlaHelpers::FloatLiteral(b, accumulation_type, height * width)); in Compile()
Dquantize_and_dequantize_op.cc86 const xla::XlaOp two = XlaHelpers::FloatLiteral(b, data_type, 2.0); in Compile()
87 const xla::XlaOp half = XlaHelpers::FloatLiteral(b, data_type, 0.5); in Compile()
/external/deqp/framework/randomshaders/
DrsgExpression.hpp106 class FloatLiteral : public Expression class
109 FloatLiteral (GeneratorState& state, ConstValueRangeAccess valueRange);
110 FloatLiteral (float customValue);
111 virtual ~FloatLiteral (void) {} in ~FloatLiteral()
DrsgBinaryOps.cpp246 FloatLiteral* epsilonLiteral = new FloatLiteral(0.001f); in createNextChild()
266 FloatLiteral* epsilonLiteral = new FloatLiteral(0.001f); in createNextChild()
299 FloatLiteral* epsilonLiteral = new FloatLiteral(0.001f); in createNextChild()
DrsgExpression.cpp283 { getWeight<FloatLiteral>, create<FloatLiteral> },
359 FloatLiteral::FloatLiteral (GeneratorState& state, ConstValueRangeAccess valueRange) in FloatLiteral() function in rsg::FloatLiteral
387 FloatLiteral::FloatLiteral (float customValue) in FloatLiteral() function in rsg::FloatLiteral
399 float FloatLiteral::getWeight (const GeneratorState& state, ConstValueRangeAccess valueRange) in getWeight()
423 void FloatLiteral::tokenize (GeneratorState& state, TokenStream& str) const in tokenize()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_helpers.cc56 xla::XlaOp XlaHelpers::FloatLiteral(xla::XlaBuilder* b, DataType data_type, in FloatLiteral() function in tensorflow::XlaHelpers
60 return ::tensorflow::FloatLiteral(b, type, value); in FloatLiteral()
Dxla_helpers.h47 static xla::XlaOp FloatLiteral(xla::XlaBuilder* b, DataType data_type,
/external/tensorflow/tensorflow/compiler/tf2xla/lib/
Dutil.h28 xla::XlaOp FloatLiteral(xla::XlaBuilder* builder, xla::PrimitiveType type,
Dutil.cc39 xla::XlaOp FloatLiteral(xla::XlaBuilder* builder, xla::PrimitiveType type, in FloatLiteral() function
/external/skia/src/sksl/
DSkSLIRGenerator.cpp663 children.push_back(std::unique_ptr<Expression>(new FloatLiteral(fContext, -1, 0.0))); in getNormalizeSkPositionCode()
1032 return std::unique_ptr<Expression>(new FloatLiteral(fContext, expr.fOffset, in convertExpression()
1437 double leftVal = ((FloatLiteral&) left).fValue; in constantFold()
1438 double rightVal = ((FloatLiteral&) right).fValue; in constantFold()
1467 args.emplace_back(new FloatLiteral(fContext, -1, value)); \ in constantFold()
1732 double value = ((FloatLiteral&) *args[0]).fValue; in convertNumberConstructor()
1733 return std::unique_ptr<Expression>(new FloatLiteral(offset, value, &type)); in convertNumberConstructor()
1737 return std::unique_ptr<Expression>(new FloatLiteral(offset, (double) value, &type)); in convertNumberConstructor()
1872 double value = -((FloatLiteral&) *base).fValue; in convertPrefixExpression()
1873 return std::unique_ptr<Expression>(new FloatLiteral(fContext, base->fOffset, in convertPrefixExpression()
DSkSLGLSLCodeGenerator.h176 void writeFloatLiteral(const FloatLiteral& f);
/external/skqp/src/sksl/
DSkSLIRGenerator.cpp657 children.push_back(std::unique_ptr<Expression>(new FloatLiteral(fContext, -1, 0.0))); in getNormalizeSkPositionCode()
997 return std::unique_ptr<Expression>(new FloatLiteral(fContext, expr.fOffset, in convertExpression()
1387 double leftVal = ((FloatLiteral&) left).fValue; in constantFold()
1388 double rightVal = ((FloatLiteral&) right).fValue; in constantFold()
1418 args.emplace_back(new FloatLiteral(fContext, -1, value)); \ in constantFold()
1683 double value = ((FloatLiteral&) *args[0]).fValue; in convertNumberConstructor()
1684 return std::unique_ptr<Expression>(new FloatLiteral(offset, value, &type)); in convertNumberConstructor()
1688 return std::unique_ptr<Expression>(new FloatLiteral(offset, (double) value, &type)); in convertNumberConstructor()
1827 double value = -((FloatLiteral&) *base).fValue; in convertPrefixExpression()
1828 return std::unique_ptr<Expression>(new FloatLiteral(fContext, base->fOffset, in convertPrefixExpression()
DSkSLGLSLCodeGenerator.h176 void writeFloatLiteral(const FloatLiteral& f);

12