Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/xla/tests/
Dbitcast_convert_test.cc47 BitcastConvertType(a, S32); in TEST_F()
56 BitcastConvertType(a, F32); in TEST_F()
68 BitcastConvertType(a, F32); in TEST_F()
77 BitcastConvertType(a, F32); in XLA_TEST_F()
86 BitcastConvertType(a, S32); in TEST_F()
96 BitcastConvertType(a, F32); in TEST_F()
106 BitcastConvertType(param, S32); in TEST_F()
118 BitcastConvertType(param, F32); in TEST_F()
135 BitcastConvertType(reshape, F32); in TEST_F()
Dconvert_test.cc543 BitcastConvertType(all_bfloats_f32, U32); in XLA_TEST_F()
/external/tensorflow/tensorflow/compiler/xla/client/lib/
Dprng.cc39 key[0] = BitcastConvertType(key[0], U32); in ThreeFry2x32()
40 key[1] = BitcastConvertType(key[1], U32); in ThreeFry2x32()
164 auto floats = BitcastConvertType(bits, F32); in StatelessRngUniformF32()
176 auto range = BitcastConvertType(maxval, unsigned_type) - in StatelessRngUniformInt()
177 BitcastConvertType(minval, unsigned_type); in StatelessRngUniformInt()
182 return minval + BitcastConvertType(dist_div_2, type) + in StatelessRngUniformInt()
183 BitcastConvertType(dist - dist_div_2, type); in StatelessRngUniformInt()
Dcomparators.cc84 auto signed_value = BitcastConvertType(value, signed_type); in BitcastConvertFloatingPointToIntegral()
85 auto unsigned_value = BitcastConvertType(value, unsigned_type); in BitcastConvertFloatingPointToIntegral()
87 BitcastConvertType(Sub(max_value, unsigned_value), signed_type); in BitcastConvertFloatingPointToIntegral()
Dmath.cc115 return Eq(BitcastConvertType(operand, U64), in IsNegZero()
118 return Eq(BitcastConvertType(operand, U32), in IsNegZero()
125 return Eq(BitcastConvertType(ConvertElementType(operand, F32), U32), in IsNegZero()
570 auto from_as_int = BitcastConvertType(from, int_type); in NextAfter()
571 auto to_as_int = BitcastConvertType(to, int_type); in NextAfter()
580 result_for_nan = BitcastConvertType(result_for_nan, int_type); in NextAfter()
638 return BitcastConvertType(result, shape.element_type()); in NextAfter()
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dpooling_ops.cc562 auto in_hi = xla::BitcastConvertType( in Compile()
566 auto bp_int = xla::BitcastConvertType(out_backprop, xla::U32); in Compile()
585 xla::BitcastConvertType(lhs, xla::S32), sixteen), in Compile()
589 xla::BitcastConvertType(rhs, xla::S32), sixteen), in Compile()
592 xla::Select(xla::Ge(xla::BitcastConvertType(lhs_criteria, xla::F32), in Compile()
593 xla::BitcastConvertType(rhs_criteria, xla::F32)), in Compile()
600 xla::ReduceWindow(xla::BitcastConvertType(in_hi_bp_hi, xla::F32), in Compile()
603 xla::ReduceWindow(xla::BitcastConvertType(in_hi_bp_lo, xla::F32), in Compile()
606 xla::ShiftLeft(xla::BitcastConvertType(pooled_hi, xla::U32), sixteen); in Compile()
608 xla::ShiftLeft(xla::BitcastConvertType(pooled_lo, xla::U32), sixteen), in Compile()
[all …]
Dcast_op.cc78 input = xla::BitcastConvertType( in Compile()
80 xla::BitcastConvertType(input, same_width_int), in Compile()
129 output = xla::BitcastConvertType(input, dst_type_); in Compile()
Dstateful_random_ops.cc137 return BitcastConvertType(x, xla::S32); in StatefulRngUniformFullInt()
145 return BitcastConvertType(x, xla::S64); in StatefulRngUniformFullInt()
217 auto counter = BitcastConvertType( in CompileImpl()
219 auto key = BitcastConvertType( in CompileImpl()
237 var = BitcastConvertType(var, state_element_type); in CompileImpl()
Dstateless_random_ops.cc39 auto output = xla::BitcastConvertType(input, xla::U32) & in MaybeConvertF32ToBF16()
41 return xla::ConvertElementType(xla::BitcastConvertType(output, xla::F32), in MaybeConvertF32ToBF16()
/external/tensorflow/tensorflow/compiler/xla/python/
Dlocal_computation_builder.cc603 LocalOp ComputationBuilder::BitcastConvertType(const LocalOp& operand, in BitcastConvertType() function in xla::swig::ComputationBuilder
605 return xla::BitcastConvertType(operand.op(), new_element_type); in BitcastConvertType()
Dlocal_computation_builder.h305 LocalOp BitcastConvertType(const LocalOp& operand,
Dlocal_computation_builder.i317 %unignore xla::swig::ComputationBuilder::BitcastConvertType;
Dxla_client.py1142 def BitcastConvertType(self, operand, new_element_type): member in ComputationBuilder
1152 return self._client.BitcastConvertType(operand, new_element_type)
Dxla_client_test.py571 c.BitcastConvertType(x, dst_etype)
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.cc1614 auto signed_value = BitcastConvertType(value, signed_type); in BitcastConvertFloatingPointToIntegral()
1615 auto unsigned_value = BitcastConvertType(value, unsigned_type); in BitcastConvertFloatingPointToIntegral()
1617 BitcastConvertType(Sub(max_value, unsigned_value), signed_type); in BitcastConvertFloatingPointToIntegral()
1719 XlaOp XlaBuilder::BitcastConvertType(const XlaOp& operand, in BitcastConvertType() function in xla::XlaBuilder
3353 XlaOp BitcastConvertType(const XlaOp& operand, PrimitiveType new_element_type) { in BitcastConvertType() function
3354 return operand.builder()->BitcastConvertType(operand, new_element_type); in BitcastConvertType()
Dxla_builder.h505 XlaOp BitcastConvertType(const XlaOp& operand,
937 friend XlaOp BitcastConvertType(const XlaOp& operand,
1713 XlaOp BitcastConvertType(const XlaOp& operand, PrimitiveType new_element_type);
/external/tensorflow/tensorflow/compiler/xla/g3doc/
Doperation_semantics.md256 ## BitcastConvertType section in Operation Semantics
259 [`XlaBuilder::BitcastConvertType`](https://www.tensorflow.org/code/tensorflow/compiler/xla/client/x…
267 <b> `BitcastConvertType(operand, new_element_type)` </b>