Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/service/
Dreduce_precision_insertion.h40 const int exponent_bits, const int mantissa_bits, in ReducePrecisionInsertion() argument
44 mantissa_bits_(mantissa_bits), in ReducePrecisionInsertion()
54 mantissa_bits_(reduce_precision_options.mantissa_bits()), in ReducePrecisionInsertion()
75 const int exponent_bits, const int mantissa_bits,
129 instruction->mantissa_bits() <= mantissa_bits_; in is_redundant()
Dreduce_precision_insertion.cc142 user->mantissa_bits() == mantissa_bits_) { in insert_on_inputs()
268 const int mantissa_bits, in make_options_proto() argument
274 options.set_mantissa_bits(mantissa_bits); in make_options_proto()
Dshape_inference.h260 const int mantissa_bits);
Delemental_ir_emitter.cc66 int64 mantissa_bits, in EmitReducePrecisionFloat() argument
75 if (mantissa_bits < 23) { in EmitReducePrecisionFloat()
77 const uint32_t last_mantissa_bit_mask = 1u << (23 - mantissa_bits); in EmitReducePrecisionFloat()
86 (23 - mantissa_bits)); in EmitReducePrecisionFloat()
163 if (mantissa_bits > 0) { in EmitReducePrecisionFloat()
1167 /*mantissa_bits=*/hlo->mantissa_bits(), b_); in EmitReducePrecision()
Dhlo_instructions.cc1732 const int mantissa_bits) in HloReducePrecisionInstruction() argument
1735 mantissa_bits_(mantissa_bits) { in HloReducePrecisionInstruction()
1760 mantissa_bits() == casted_other.mantissa_bits(); in IdenticalSlowPath()
1769 shape, new_operands[0], exponent_bits(), mantissa_bits()); in CloneWithNewOperandsImpl()
Dhlo_evaluator_typed_visitor.h2537 const uint32_t mantissa_bits = reduce_precision->mantissa_bits(); in HandleReducePrecision()
2546 if (mantissa_bits < 23) { in HandleReducePrecision()
2547 const uint32_t last_mantissa_bit_mask = 1u << (23 - mantissa_bits); in HandleReducePrecision()
2555 (value_as_int & last_mantissa_bit_mask) >> (23 - mantissa_bits); in HandleReducePrecision()
2611 reduced_result = mantissa_bits > 0 in HandleReducePrecision()
Dhlo_instruction.h472 const int mantissa_bits);
1507 int32 mantissa_bits() const;
Dhlo_instruction.cc356 shape, operands(0), proto.exponent_bits(), proto.mantissa_bits()); in CreateFromProto()
827 const int mantissa_bits) { in CreateReducePrecision() argument
829 shape, operand, exponent_bits, mantissa_bits); in CreateReducePrecision()
3392 int32 HloInstruction::mantissa_bits() const { in mantissa_bits() function in xla::HloInstruction
3393 return Cast<HloReducePrecisionInstruction>(this)->mantissa_bits(); in mantissa_bits()
Dhlo_instructions.h937 const int mantissa_bits);
941 int32 mantissa_bits() const { return mantissa_bits_; } in mantissa_bits() function
Dshape_inference.cc462 const int mantissa_bits) { in InferReducePrecisionShape() argument
476 if (mantissa_bits < 0) { in InferReducePrecisionShape()
479 mantissa_bits); in InferReducePrecisionShape()
Dhlo.proto98 int32 mantissa_bits = 19; field
Dhlo_parser.cc1433 optional<int64> mantissa_bits; in ParseInstructionRhs() local
1437 &mantissa_bits}; in ParseInstructionRhs()
1445 static_cast<int>(*mantissa_bits))); in ParseInstructionRhs()
Dhlo_verifier.cc217 reduce_precision->mantissa_bits())); in HandleReducePrecision()
Dhlo_parser_test.cc1096 ROOT reduce-precision = f32[1]{0} reduce-precision(constant), exponent_bits=8, mantissa_bits=10 in CreateTestCases()
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_format_float.c75 unsigned mantissa_bits, in lp_build_float_to_smallfloat() argument
88 unsigned exponent_start = mantissa_start + mantissa_bits; in lp_build_float_to_smallfloat()
119 ~((1 << (23 - mantissa_bits)) - 1) & in lp_build_float_to_smallfloat()
138 (((1 << mantissa_bits) - 1) << (23 - mantissa_bits))); in lp_build_float_to_smallfloat()
198 unsigned maskbits = (1 << (mantissa_bits + exponent_bits)) - 1; in lp_build_float_to_smallfloat()
200 maskbits << (23 - mantissa_bits)); in lp_build_float_to_smallfloat()
284 unsigned mantissa_bits, in lp_build_smallfloat_to_float() argument
292 unsigned exponent_start = mantissa_start + mantissa_bits; in lp_build_smallfloat_to_float()
309 ((1 << (mantissa_bits + exponent_bits)) - 1) in lp_build_smallfloat_to_float()
310 << (23 - mantissa_bits)); in lp_build_smallfloat_to_float()
Dlp_bld_format.h187 unsigned mantissa_bits,
196 unsigned mantissa_bits,
/external/tensorflow/tensorflow/compiler/xla/
Ddebug_options_parsers_test.cc46 EXPECT_EQ(proto.mantissa_bits(), 10); in TEST()
61 EXPECT_EQ(proto.mantissa_bits(), 10); in TEST()
76 EXPECT_EQ(proto.mantissa_bits(), 10); in TEST()
89 EXPECT_EQ(proto.mantissa_bits(), 10); in TEST()
Dxla.proto50 uint32 mantissa_bits = 3; field
/external/tensorflow/tensorflow/compiler/xla/tests/
Dreduce_precision_test.cc210 int mantissa_bits = mantissa_sizes[index]; in XLA_TEST_P() local
237 ReducePrecision(a, exponent_bits, mantissa_bits); in XLA_TEST_P()
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.h541 const int mantissa_bits);
967 const int mantissa_bits);
1812 const int mantissa_bits);
Dxla_builder.cc2295 const int mantissa_bits) { in ReducePrecision() argument
2301 operand_shape, exponent_bits, mantissa_bits)); in ReducePrecision()
2304 instr.set_mantissa_bits(mantissa_bits); in ReducePrecision()
3419 const int mantissa_bits) { in ReducePrecision() argument
3421 mantissa_bits); in ReducePrecision()
/external/tensorflow/tensorflow/compiler/xla/g3doc/
Doperation_semantics.md1838 <b> `ReducePrecision(operand, mantissa_bits, exponent_bits)` </b>
1844 `mantissa_bits` | `int32` | number of mantissa bits in lower-precision format