/external/tensorflow/tensorflow/compiler/xla/tests/ |
D | iota_test.cc | 39 const auto element_type = std::get<0>(spec); in XLA_TEST_P() local 41 XlaBuilder builder(TestName() + "_" + PrimitiveType_Name(element_type)); in XLA_TEST_P() 42 Iota(&builder, element_type, num_elements); in XLA_TEST_P() 43 if (element_type == F32) { in XLA_TEST_P() 46 } else if (element_type == U32) { in XLA_TEST_P() 50 CHECK_EQ(element_type, S32); in XLA_TEST_P() 68 const auto element_type = std::get<0>(spec); in XLA_TEST_P() local 72 if (element_type == BF16) { in XLA_TEST_P() 76 XlaBuilder builder(TestName() + "_" + PrimitiveType_Name(element_type)); in XLA_TEST_P() 79 Iota(&builder, ShapeUtil::MakeShape(element_type, dimensions), iota_dim); in XLA_TEST_P() [all …]
|
/external/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.types/ |
D | element_type.pass.cpp | 26 typedef char element_type; typedef 32 typedef char element_type; typedef 48 static int element_type; member 54 typedef int element_type; typedef 59 static_assert((std::is_same<std::pointer_traits<A>::element_type, char>::value), ""); in main() 60 static_assert((std::is_same<std::pointer_traits<B<int> >::element_type, char>::value), ""); in main() 61 static_assert((std::is_same<std::pointer_traits<C<int> >::element_type, int>::value), ""); in main() 62 …static_assert((std::is_same<std::pointer_traits<D<double, int> >::element_type, double>::value), "… in main() 63 …static_assert((std::is_same<std::pointer_traits<E<double, int> >::element_type, double>::value), "… in main() 65 static_assert((std::is_same<std::pointer_traits<F<double>>::element_type, double>::value), ""); in main()
|
/external/Reactive-Extensions/RxCpp/Ix/CPP/src/cpplinq/ |
D | linq.hpp | 220 typedef typename Collection::cursor::element_type 221 element_type; typedef in cpplinq::linq_driver 270 element_type aggregate(Fn fn) const in aggregate() 274 return element_type(); in aggregate() 316 bool contains(const typename Collection::cursor::element_type& value) const { in contains() 345 element_type element_at_or_default(std::size_t ix) const { in element_at_or_default() 351 if (cur.empty()) { return element_type(); } in element_at_or_default() 378 element_type first_or_default() const { in first_or_default() 380 if (cur.empty()) { return element_type(); } in first_or_default() 385 element_type first_or_default(Predicate pred) const { in first_or_default() [all …]
|
D | linq_last.hpp | 10 typename Cursor::element_type 14 typename Cursor::element_type elem = c.get(); in linq_last_() 49 typename Cursor::element_type 52 typename Cursor::element_type elem; in linq_last_or_default_() 61 typename Cursor::element_type 75 typename Cursor::element_type 78 if (c.empty()) { return typename Cursor::element_type(); } in linq_last_or_default_()
|
/external/webrtc/webrtc/base/ |
D | scoped_ptr.h | 318 typedef T element_type; 325 explicit scoped_ptr(element_type* p) : impl_(p) {} 328 scoped_ptr(element_type* p, const D& d) : impl_(p, d) {} 385 void reset(element_type* p = nullptr) { impl_.reset(p); } 389 element_type& operator*() const { 393 element_type* operator->() const { 397 element_type* get() const { return impl_.get(); } 411 typedef rtc::internal::scoped_ptr_impl<element_type, deleter_type> 422 bool operator==(const element_type* p) const { return impl_.get() == p; } 423 bool operator!=(const element_type* p) const { return impl_.get() != p; } [all …]
|
/external/tensorflow/tensorflow/compiler/xla/python_api/ |
D | xla_shape.py | 40 def __init__(self, element_type, dimensions, layout=None): argument 55 self.message.element_type = element_type 56 if element_type == xla_data_pb2.TUPLE: 71 def element_type(self): member in Shape 72 return self.message.element_type 75 return self.element_type() == xla_data_pb2.TUPLE 112 element_type = types.MAP_DTYPE_TO_RECORD[str(ndarray.dtype)].primitive_type 126 return Shape(element_type, dimensions, layout) 157 element_type = types.MAP_DTYPE_TO_RECORD[str(dtype)].primitive_type 158 return Shape(element_type, shape_tuple)
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | bfloat16_normalization_test.cc | 118 EXPECT_EQ(add0->shape().element_type(), BF16); in TEST_F() 119 EXPECT_EQ(add1->shape().element_type(), F32); in TEST_F() 147 EXPECT_EQ(mul0->shape().element_type(), F32); in TEST_F() 148 EXPECT_EQ(mul1->shape().element_type(), F32); in TEST_F() 177 EXPECT_EQ(sub0->shape().element_type(), F32); in TEST_F() 178 EXPECT_EQ(sub1->shape().element_type(), F32); in TEST_F() 219 .element_type(), in TEST_F() 224 .element_type(), in TEST_F() 229 .element_type(), in TEST_F() 231 EXPECT_EQ(reduce->shape().element_type(), F32); in TEST_F() [all …]
|
D | shape_inference.cc | 161 PrimitiveType element_type, in InferWindowOutputShape() argument 219 return ShapeUtil::MakeValidatedShape(element_type, output_dimensions, in InferWindowOutputShape() 249 HloOpcodeString(opcode), PrimitiveType_Name(shape.element_type())); in InferUnaryOpShape() 266 HloOpcodeString(opcode), PrimitiveType_Name(shape.element_type())); in InferUnaryOpShape() 279 HloOpcodeString(opcode), PrimitiveType_Name(shape.element_type())); in InferUnaryOpShape() 284 shape, primitive_util::ComplexComponentType(shape.element_type())); in InferUnaryOpShape() 291 HloOpcodeString(opcode), PrimitiveType_Name(shape.element_type())); in InferUnaryOpShape() 298 PrimitiveType_Name(shape.element_type())); in InferUnaryOpShape() 308 HloOpcodeString(opcode), PrimitiveType_Name(shape.element_type())); in InferUnaryOpShape() 316 PrimitiveType_Name(shape.element_type())); in InferUnaryOpShape() [all …]
|
D | hlo_element_type_converter.cc | 39 if (hlo->shape().element_type() != type) { in ToElementType() 44 CHECK_EQ(hlo->shape().element_type(), type); in ToElementType() 50 if (operand->shape().element_type() == type) { in HasOperandType() 72 if (subshape.element_type() == from_type) { in GetConvertedTupleShape() 96 if (ele_shape.element_type() != to_ele_shape.element_type()) { in ConvertTupleElements() 155 bool wrong_element_type = hlo->shape().element_type() == eliminate_type_; in Run() 163 TF_RET_CHECK(hlo->shape().element_type() != eliminate_type_); in Run() 174 if (operand->shape().element_type() == eliminate_type_) { in Run() 185 if (hlo->shape().element_type() == eliminate_type_) { in Run()
|
D | bfloat16_conversion_folding_test.cc | 112 EXPECT_EQ(add0->shape().element_type(), BF16); in TEST_F() 113 EXPECT_EQ(add1->shape().element_type(), BF16); in TEST_F() 147 EXPECT_EQ(mul0->shape().element_type(), F32); in TEST_F() 148 EXPECT_EQ(mul1->shape().element_type(), F32); in TEST_F() 182 EXPECT_EQ(sub0->shape().element_type(), F32); in TEST_F() 183 EXPECT_EQ(sub1->shape().element_type(), F32); in TEST_F() 212 EXPECT_EQ(gte->shape().element_type(), F32); in TEST_F() 260 EXPECT_EQ(gte_a->shape().element_type(), F32); in TEST_F() 261 EXPECT_EQ(gte_b->shape().element_type(), BF16); in TEST_F() 264 EXPECT_EQ(a->shape().element_type(), BF16); in TEST_F() [all …]
|
D | hlo_creation_utils.cc | 117 Shape new_shape = ShapeUtil::MakeShape(operand->shape().element_type(), in MakeReshapeHlo() 128 ShapeUtil::MakeShape(start_indices[0]->shape().element_type(), {})); in MakeDynamicSliceHlo() 147 ShapeUtil::MakeShape(start_indices->shape().element_type(), {1}), in MakeDynamicSliceHlo() 151 ShapeUtil::MakeShape(start_indices->shape().element_type(), {}), in MakeDynamicSliceHlo() 155 rank, ShapeUtil::MakeShape(start_indices->shape().element_type(), {})); in MakeDynamicSliceHlo() 175 ShapeUtil::MakeShape(start_indices->shape().element_type(), {1}), in MakeDynamicUpdateSliceHlo() 179 ShapeUtil::MakeShape(start_indices->shape().element_type(), {}), in MakeDynamicUpdateSliceHlo() 183 rank, ShapeUtil::MakeShape(start_indices->shape().element_type(), {})); in MakeDynamicUpdateSliceHlo() 196 Shape broadcast_shape = ShapeUtil::MakeShape(operand->shape().element_type(), in MakeBroadcastHlo() 240 CHECK_NE(hlo->shape().element_type(), type); in MakeConvertToHlo() [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/xla/tests/translate/ |
D | simple.hlo | 11 element_type: F32 27 element_type: F32 44 element_type: F32 62 element_type: F32 79 element_type: F32 88 element_type: F32 97 element_type: F32 110 element_type: F32 119 element_type: F32 128 element_type: F32
|
/external/libchrome/base/ |
D | scoped_generic.h | 70 typedef T element_type; typedef 77 explicit ScopedGeneric(const element_type& value) : data_(value) {} in ScopedGeneric() 80 ScopedGeneric(const element_type& value, const traits_type& traits) in ScopedGeneric() 102 void reset(const element_type& value = traits_type::InvalidValue()) { 121 element_type release() WARN_UNUSED_RESULT { in release() 122 element_type old_generic = data_.generic; in release() 129 element_type* receive() WARN_UNUSED_RESULT { in receive() 134 const element_type& get() const { return data_.generic; } in get() 140 bool operator==(const element_type& value) const { 143 bool operator!=(const element_type& value) const {
|
/external/libcxx/test/std/utilities/memory/pointer.traits/pointer.traits.functions/ |
D | pointer_to.pass.cpp | 28 typedef T element_type; typedef 29 element_type* t_; 31 A(element_type* t) : t_(t) {} in A() 33 static A pointer_to(typename std::conditional<std::is_void<element_type>::value, in pointer_to() 34 nat, element_type>::type& et) in pointer_to() 47 (std::pointer_traits<A<void> >::element_type)0; in main()
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | shape_util.cc | 92 PrimitiveType element_type, absl::Span<const int64> dimensions, in MakeShapeWithLayoutInternal() argument 99 if (element_type == OPAQUE_TYPE || element_type == TUPLE) { in MakeShapeWithLayoutInternal() 101 PrimitiveType_Name(element_type)); in MakeShapeWithLayoutInternal() 104 ShapeUtil::MakeValidatedShape(element_type, dimensions)); in MakeShapeWithLayoutInternal() 106 ShapeUtil::ByteSizeOfPrimitiveType(element_type) * 8) { in MakeShapeWithLayoutInternal() 174 /* static */ Shape ShapeUtil::MakeShape(PrimitiveType element_type, in MakeShape() argument 176 return MakeValidatedShape(element_type, dimensions).ValueOrDie(); in MakeShape() 179 /* static */ Shape ShapeUtil::MakeScalarShape(PrimitiveType element_type) { in MakeScalarShape() argument 180 return MakeShape(element_type, {}); in MakeScalarShape() 184 PrimitiveType element_type, absl::Span<const int64> dimensions, in MakeShape() argument [all …]
|
/external/llvm/utils/ |
D | shuffle_fuzz.py | 49 (width, element_type) = random.choice( 53 (width, element_type) = random.choice( 59 element_type = random.choice(element_types) 63 'f32': 1 << 32, 'f64': 1 << 64}[element_type] 113 (args.seed, width, element_type)) 143 integral_element_type = element_type 144 if element_type == 'f32': 146 element_type = 'float' 147 elif element_type == 'f64': 149 element_type = 'double' [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/utils/ |
D | shuffle_fuzz.py | 49 (width, element_type) = random.choice( 53 (width, element_type) = random.choice( 59 element_type = random.choice(element_types) 63 'f32': 1 << 32, 'f64': 1 << 64}[element_type] 113 (args.seed, width, element_type)) 143 integral_element_type = element_type 144 if element_type == 'f32': 146 element_type = 'float' 147 elif element_type == 'f64': 149 element_type = 'double' [all …]
|
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/ |
D | unroll_batch_matmul.cc | 70 Value value, ArrayRef<int64_t> shape, Type element_type, Location loc, in createReshapeOp() argument 75 Type resultType = RankedTensorType::get(shape, element_type); in createReshapeOp() 87 Type element_type = tensorType.getElementType(); in sliceInput() local 95 element_type, loc, rewriter); in sliceInput() 101 Type slice_result_type = RankedTensorType::get(slice_size, element_type); in sliceInput() 120 element_type, loc, rewriter); in sliceInput() 162 const tensorflow::MatMulBCast& bcast, int rows, int cols, Type element_type, in createMatMulOps() argument 164 auto matmul_type = RankedTensorType::get({rows, cols}, element_type); in createMatMulOps() 187 {bcast.output_batch_size(), rows, cols}, element_type); in createMatMulOps() 212 auto element_type = lhs_type.getElementType(); in matchAndRewrite() local [all …]
|
/external/angle/third_party/spirv-tools/src/source/fuzz/ |
D | fuzzer_pass_add_useful_constructs.cpp | 182 auto element_type = in Apply() local 184 assert(element_type && in Apply() 187 opt::analysis::Pointer uniform_pointer(element_type, in Apply() 205 element_type = GetIRContext()->get_type_mgr()->GetType(element_type_id); in Apply() 206 if (element_type->AsInteger()) { in Apply() 207 MaybeAddIntConstant(element_type->AsInteger()->width(), in Apply() 208 element_type->AsInteger()->IsSigned(), words); in Apply() 210 assert(element_type->AsFloat() && in Apply() 212 MaybeAddFloatConstant(element_type->AsFloat()->width(), words); in Apply()
|
/external/swiftshader/third_party/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_useful_constructs.cpp | 175 auto element_type = in Apply() local 177 assert(element_type && in Apply() 180 opt::analysis::Pointer uniform_pointer(element_type, in Apply() 197 element_type = GetIRContext()->get_type_mgr()->GetType(element_type_id); in Apply() 198 if (element_type->AsInteger()) { in Apply() 199 MaybeAddIntConstant(element_type->AsInteger()->width(), in Apply() 200 element_type->AsInteger()->IsSigned(), words); in Apply() 202 assert(element_type->AsFloat() && in Apply() 204 MaybeAddFloatConstant(element_type->AsFloat()->width(), words); in Apply()
|
D | fuzzer_pass_construct_composites.cpp | 176 GetIRContext()->get_type_mgr()->GetId(array_type.element_type()); in TryConstructingArrayComposite() 206 GetIRContext()->get_type_mgr()->GetId(matrix_type.element_type()); in TryConstructingMatrixComposite() 234 for (auto element_type : struct_type.element_types()) { in TryConstructingStructComposite() local 235 auto element_type_id = GetIRContext()->get_type_mgr()->GetId(element_type); in TryConstructingStructComposite() 259 auto element_type = vector_type.element_type(); in TryConstructingVectorComposite() local 271 auto scalar_type_id = GetIRContext()->get_type_mgr()->GetId(element_type); in TryConstructingVectorComposite() 277 opt::analysis::Vector smaller_vector_type(vector_type.element_type(), in TryConstructingVectorComposite() 338 assert(chosen_type->AsVector()->element_type() == element_type); in TryConstructingVectorComposite() 344 assert(chosen_type == element_type); in TryConstructingVectorComposite()
|
/external/deqp-deps/SPIRV-Tools/source/fuzz/ |
D | fuzzer_pass_add_useful_constructs.cpp | 182 auto element_type = in Apply() local 184 assert(element_type && in Apply() 187 opt::analysis::Pointer uniform_pointer(element_type, in Apply() 205 element_type = GetIRContext()->get_type_mgr()->GetType(element_type_id); in Apply() 206 if (element_type->AsInteger()) { in Apply() 207 MaybeAddIntConstant(element_type->AsInteger()->width(), in Apply() 208 element_type->AsInteger()->IsSigned(), words); in Apply() 210 assert(element_type->AsFloat() && in Apply() 212 MaybeAddFloatConstant(element_type->AsFloat()->width(), words); in Apply()
|
/external/tensorflow/tensorflow/compiler/mlir/xla/ |
D | type_to_shape.cc | 113 mlir::Type element_type = v.getElementType(); in TypeToShape() local 114 PrimitiveType primitive_type = TypeToPrimitiveType(element_type); in TypeToShape() 123 mlir::Type element_type = m.getElementType(); in TypeToShape() local 126 if (auto v = element_type.dyn_cast<VectorType>()) { in TypeToShape() 127 element_type = v.getElementType(); in TypeToShape() 130 PrimitiveType primitive_type = TypeToPrimitiveType(element_type); in TypeToShape() 153 mlir::Type element_type = t.getElementType(); in TypeToShape() local 154 PrimitiveType primitive_type = TypeToPrimitiveType(element_type); in TypeToShape()
|
/external/libxaac/decoder/ |
D | ixheaacd_common_lpfuncs.c | 102 WORD *ptr_element_type = p_obj_enhaacplus_dec->aac_config.element_type; in ixheaacd_get_channel_mask() 265 WORD element_type; in ixheaacd_get_element_index_tag() local 293 element_type = (element_tag >> 4) & 0x7; in ixheaacd_get_element_index_tag() 298 while (element_type == 4 || element_type == 5 || element_type == 6) { in ixheaacd_get_element_index_tag() 333 element_type = (element_tag >> 4) & 0x7; in ixheaacd_get_element_index_tag() 343 if (element_type == 1) { in ixheaacd_get_element_index_tag() 348 if (p_obj_enhaacplus_dec->aac_config.element_type[j] == element_type && in ixheaacd_get_element_index_tag()
|
/external/OpenCL-CTS/test_conformance/clcpp/images/ |
D | common.hpp | 37 typedef cl_int4 element_type; typedef 48 typedef cl_int4 element_type; typedef 59 typedef cl_int4 element_type; typedef 70 typedef cl_uint4 element_type; typedef 81 typedef cl_uint4 element_type; typedef 92 typedef cl_uint4 element_type; typedef 103 typedef cl_float4 element_type; typedef
|