/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
D | unary_ops.cc | 56 b->Mul(XlaHelpers::FloatLiteral(b, input_type(0), 2.0), 59 XlaHelpers::FloatLiteral(b, input_type(0), 0.5)), 67 XlaHelpers::FloatLiteral(b, input_type(0), 0.5))))); 72 b->Mul(XlaHelpers::FloatLiteral(b, input_type(0), 2.0), 76 XlaHelpers::FloatLiteral(b, input_type(0), 84 XlaHelpers::FloatLiteral(b, input_type(0), 0.5))))); 92 XlaHelpers::FloatLiteral(b, input_type(0), 0.5))); 97 XlaHelpers::FloatLiteral(b, input_type(0), 0.5))); 107 XlaHelpers::FloatLiteral( 128 auto half = XlaHelpers::FloatLiteral(b, dtype, 0.5); in Round() [all …]
|
D | fake_quantize_ops.cc | 55 XlaHelpers::FloatLiteral(b, data_type, in XlaNudge() 58 XlaHelpers::FloatLiteral(b, data_type, quant_min_value); in XlaNudge() 62 XlaHelpers::FloatLiteral(b, data_type, quant_max_value); in XlaNudge() 77 xla::ComputationDataHandle one = XlaHelpers::FloatLiteral(b, data_type, 1.0f); in Quantize() 80 XlaHelpers::FloatLiteral(b, data_type, 0.5f); in Quantize() 119 XlaHelpers::FloatLiteral(b, data_type, nudged_input_min_); in Compile() 121 XlaHelpers::FloatLiteral(b, data_type, nudged_input_max_); in Compile() 123 XlaHelpers::FloatLiteral(b, data_type, input_scale_); in Compile() 169 XlaHelpers::FloatLiteral(b, data_type, nudged_input_min_); in Compile() 171 XlaHelpers::FloatLiteral(b, data_type, nudged_input_max_); in Compile()
|
D | quantize_and_dequantize_op.cc | 55 input_min = XlaHelpers::FloatLiteral(b, data_type, input_min_value); in Compile() 56 input_max = XlaHelpers::FloatLiteral(b, data_type, input_max_value); in Compile() 89 b->Div(XlaHelpers::FloatLiteral(b, data_type, max_fixed - min_fixed), in Compile() 90 b->Mul(XlaHelpers::FloatLiteral(b, data_type, 2.0), m)); in Compile()
|
D | image_ops.cc | 43 auto norm = b->Div(XlaHelpers::FloatLiteral(b, dtype, 1.0 / 6.0), range); in RGBToHSV() 47 XlaHelpers::FloatLiteral(b, dtype, 2.0 / 6.0)), in RGBToHSV() 49 XlaHelpers::FloatLiteral(b, dtype, 4.0 / 6.0))); in RGBToHSV() 64 auto one = XlaHelpers::FloatLiteral(b, dtype, 1.0); in HSVToRGB() 65 auto two = XlaHelpers::FloatLiteral(b, dtype, 2.0); in HSVToRGB() 66 auto three = XlaHelpers::FloatLiteral(b, dtype, 3.0); in HSVToRGB() 67 auto four = XlaHelpers::FloatLiteral(b, dtype, 4.0); in HSVToRGB() 68 auto six = XlaHelpers::FloatLiteral(b, dtype, 6.0); in HSVToRGB() 186 output = b->Div(output, XlaHelpers::FloatLiteral(b, type, height * width)); in Compile()
|
D | elu_op.cc | 72 const auto scale = XlaHelpers::FloatLiteral(b, input_type(0), in Compile() 74 const auto scale_alpha = XlaHelpers::FloatLiteral(b, input_type(0), in Compile() 92 const auto scale = XlaHelpers::FloatLiteral(b, input_type(0), in Compile() 94 const auto scale_alpha = XlaHelpers::FloatLiteral(b, input_type(0), in Compile()
|
D | training_ops.cc | 152 accum = b->Add(accum, b->Pow(grad, XlaHelpers::FloatLiteral(b, type, 2.0))); in Compile() 155 b->Pow(accum, XlaHelpers::FloatLiteral(b, type, -0.5)))); in Compile() 230 xla::ComputationDataHandle half = XlaHelpers::FloatLiteral(b, dtype_, 0.5); in Compile() 231 xla::ComputationDataHandle one = XlaHelpers::FloatLiteral(b, dtype_, 1.0); in Compile() 232 xla::ComputationDataHandle two = XlaHelpers::FloatLiteral(b, dtype_, 2.0); in Compile() 325 b->Mul(b->Sub(b->Pow(grad, XlaHelpers::FloatLiteral(b, type, 2.0)), ms), in Compile() 326 b->Sub(XlaHelpers::FloatLiteral(b, type, 1.0), rho))); in Compile() 331 XlaHelpers::FloatLiteral(b, type, -0.5)))); in Compile() 424 xla::ComputationDataHandle two = XlaHelpers::FloatLiteral(b, dtype, 2.0); in CompileFtrl()
|
/external/skia/src/sksl/ir/ |
D | SkSLFloatLiteral.h | 19 struct FloatLiteral : public Expression { struct 20 FloatLiteral(const Context& context, int offset, double value, 38 FloatLiteral& f = (FloatLiteral&) other; in compareConstant() argument
|
D | SkSLPrefixExpression.h | 39 return std::unique_ptr<Expression>(new FloatLiteral( in constantPropagate() 42 -((FloatLiteral&) *fOperand).fValue)); in constantPropagate()
|
D | SkSLVariableReference.h | 97 return std::unique_ptr<Expression>(new FloatLiteral( in copy_constant() 100 ((FloatLiteral*) expr)->fValue)); in copy_constant()
|
D | SkSLConstructor.h | 39 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate() 100 const FloatLiteral fzero(context, -1, 0); in compareConstant()
|
D | SkSLSwizzle.h | 106 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
|
/external/skqp/src/sksl/ir/ |
D | SkSLFloatLiteral.h | 19 struct FloatLiteral : public Expression { struct 20 FloatLiteral(const Context& context, int offset, double value, 38 FloatLiteral& f = (FloatLiteral&) other; in compareConstant() argument
|
D | SkSLPrefixExpression.h | 39 return std::unique_ptr<Expression>(new FloatLiteral( in constantPropagate() 42 -((FloatLiteral&) *fOperand).fValue)); in constantPropagate()
|
D | SkSLVariableReference.h | 94 return std::unique_ptr<Expression>(new FloatLiteral( in copy_constant() 97 ((FloatLiteral*) expr)->fValue)); in copy_constant()
|
D | SkSLConstructor.h | 39 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate() 100 const FloatLiteral fzero(context, -1, 0); in compareConstant()
|
D | SkSLSwizzle.h | 106 return std::unique_ptr<Expression>(new FloatLiteral(irGenerator.fContext, in constantPropagate()
|
/external/deqp/framework/randomshaders/ |
D | rsgExpression.hpp | 106 class FloatLiteral : public Expression class 109 FloatLiteral (GeneratorState& state, ConstValueRangeAccess valueRange); 110 virtual ~FloatLiteral (void) {} in ~FloatLiteral()
|
/external/tensorflow/tensorflow/compiler/tf2xla/lib/ |
D | util.h | 32 xla::ComputationDataHandle FloatLiteral(xla::ComputationBuilder* builder,
|
/external/tensorflow/tensorflow/compiler/tf2xla/ |
D | xla_helpers.h | 65 static xla::ComputationDataHandle FloatLiteral(xla::ComputationBuilder* b,
|
D | xla_helpers.cc | 143 xla::ComputationDataHandle XlaHelpers::FloatLiteral(xla::ComputationBuilder* b, in FloatLiteral() function in tensorflow::XlaHelpers 148 return ::tensorflow::FloatLiteral(b, type, value); in FloatLiteral()
|
/external/skia/src/sksl/ |
D | SkSLIRGenerator.cpp | 632 children.push_back(std::unique_ptr<Expression>(new FloatLiteral(fContext, -1, 0.0))); in getNormalizeSkPositionCode() 950 return std::unique_ptr<Expression>(new FloatLiteral(fContext, expr.fOffset, in convertExpression() 1297 double leftVal = ((FloatLiteral&) left).fValue; in constantFold() 1298 double rightVal = ((FloatLiteral&) right).fValue; in constantFold() 1328 args.emplace_back(new FloatLiteral(fContext, -1, value)); \ in constantFold() 1489 float3rguments.emplace_back(new FloatLiteral(fContext, -1, 1.0)); in fixRectSampling() 1624 double value = ((FloatLiteral&) *args[0]).fValue; in convertNumberConstructor() 1625 return std::unique_ptr<Expression>(new FloatLiteral(fContext, offset, value, &type)); in convertNumberConstructor() 1629 return std::unique_ptr<Expression>(new FloatLiteral(fContext, offset, (double) value, in convertNumberConstructor() 1770 double value = -((FloatLiteral&) *base).fValue; in convertPrefixExpression() [all …]
|
D | SkSLMetalCodeGenerator.h | 167 void writeFloatLiteral(const FloatLiteral& f);
|
/external/skqp/src/sksl/ |
D | SkSLIRGenerator.cpp | 633 children.push_back(std::unique_ptr<Expression>(new FloatLiteral(fContext, -1, 0.0))); in getNormalizeSkPositionCode() 949 return std::unique_ptr<Expression>(new FloatLiteral(fContext, expr.fOffset, in convertExpression() 1296 double leftVal = ((FloatLiteral&) left).fValue; in constantFold() 1297 double rightVal = ((FloatLiteral&) right).fValue; in constantFold() 1327 args.emplace_back(new FloatLiteral(fContext, -1, value)); \ in constantFold() 1488 float3rguments.emplace_back(new FloatLiteral(fContext, -1, 1.0)); in fixRectSampling() 1623 double value = ((FloatLiteral&) *args[0]).fValue; in convertNumberConstructor() 1624 return std::unique_ptr<Expression>(new FloatLiteral(fContext, offset, value, &type)); in convertNumberConstructor() 1628 return std::unique_ptr<Expression>(new FloatLiteral(fContext, offset, (double) value, in convertNumberConstructor() 1769 double value = -((FloatLiteral&) *base).fValue; in convertPrefixExpression() [all …]
|
D | SkSLMetalCodeGenerator.h | 167 void writeFloatLiteral(const FloatLiteral& f);
|
D | SkSLGLSLCodeGenerator.h | 171 void writeFloatLiteral(const FloatLiteral& f);
|