Home
last modified time | relevance | path

Searched refs:tuple_type (Results 1 – 13 of 13) sorted by relevance

/external/catch2/projects/SelfTest/UsageTests/
DGenerators.tests.cpp45 using tuple_type = std::tuple<char const*, int>; typedef
47 tuple_type{"first", 5},
48 tuple_type{"second", 6},
49 tuple_type{"third", 5},
50 tuple_type{"etc...", 6}
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dtype_to_shape.cc175 } else if (auto tuple_type = type.dyn_cast<mlir::TupleType>()) { in TypeToShape() local
177 shapes.reserve(tuple_type.size()); in TypeToShape()
178 for (mlir::Type sub_type : tuple_type.getTypes()) { in TypeToShape()
Dhlo_function_importer.cc175 auto tuple_type = type.dyn_cast<mlir::TupleType>(); in IsNestedTupleInData() local
176 if (!tuple_type) return false; in IsNestedTupleInData()
178 assert(tuple_type.getType(1).isa<mlir::mhlo::TokenType>() && in IsNestedTupleInData()
180 auto data_type = tuple_type.getType(0); in IsNestedTupleInData()
194 auto tuple_type = type.dyn_cast<mlir::TupleType>(); in FlattenTupleType() local
195 if (!tuple_type) { in FlattenTupleType()
200 for (auto child_type : tuple_type.getTypes()) { in FlattenTupleType()
208 auto tuple_type = value.getType().dyn_cast<mlir::TupleType>(); in FlattenTupleValue() local
209 if (!tuple_type) { in FlattenTupleValue()
215 for (auto child_type : tuple_type.getTypes()) { in FlattenTupleValue()
[all …]
Dmlir_hlo_to_hlo.cc240 auto tuple_type = type.dyn_cast<mlir::TupleType>(); in GetCustomCallResultShapeWithLayout() local
241 if (!tuple_type) return ConvertTypesToShapesWithLayout({type}, layouts)[0]; in GetCustomCallResultShapeWithLayout()
244 ConvertTypesToShapesWithLayout(tuple_type.getTypes(), layouts); in GetCustomCallResultShapeWithLayout()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter_nested.cc150 llvm::Type* tuple_type = llvm_ir::ShapeToIrType(return_shape, module_); in CodegenNestedComputation() local
151 llvm::Type* tuple_type_ptr = tuple_type->getPointerTo(); in CodegenNestedComputation()
159 /*alignment=*/1, tuple_ptr, tuple_type, &b_); in CodegenNestedComputation()
/external/tensorflow/tensorflow/compiler/mlir/xla/transforms/
Dlegalize_tf_communication.cc436 auto tuple_type = value.getType().dyn_cast<TupleType>(); in GetValueWithToken() local
438 if (!tuple_type) return {create_tuple({value, token})}; in GetValueWithToken()
452 for (auto idx : llvm::seq<int32_t>(0, tuple_type.getTypes().size())) in GetValueWithToken()
477 if (auto tuple_type = type.dyn_cast<TupleType>()) { in GetTypeWithToken() local
478 auto result_types = llvm::to_vector(tuple_type.getTypes()); in GetTypeWithToken()
514 auto tuple_type = value.getType().dyn_cast<TupleType>(); in ReplaceWithTupleResult() local
515 if (!tuple_type) { in ReplaceWithTupleResult()
532 sub_tuple = CreateSubTuple(builder, replacement, tuple_type.size()); in ReplaceWithTupleResult()
Dadjust_layout.cc80 auto tuple_type = types[0].dyn_cast<TupleType>(); in GetTPUInfeedLayout() local
81 const auto &types = tuple_type.getTypes(); in GetTPUInfeedLayout()
Dlegalize_tf_control_flow.cc208 void ReplaceBlockArgs(Block* block, Type tuple_type, OpBuilder* builder) { in ReplaceBlockArgs() argument
209 auto tuple_arg = block->addArgument(tuple_type, block->getParent()->getLoc()); in ReplaceBlockArgs()
/external/catch2/projects/SelfTest/IntrospectiveTests/
DCmdLine.tests.cpp420 using tuple_type = std::tuple<char const*, Catch::WaitForKeypress::When>; typedef
422 tuple_type{"never", Catch::WaitForKeypress::Never},
423 tuple_type{"start", Catch::WaitForKeypress::BeforeStart},
424 tuple_type{"exit", Catch::WaitForKeypress::BeforeExit},
425 tuple_type{"both", Catch::WaitForKeypress::BeforeStartAndExit},
/external/libchrome/components/json_schema/
Djson_schema_validator.cc719 const base::ListValue* tuple_type = nullptr; in ValidateTuple() local
720 schema->GetList(schema::kItems, &tuple_type); in ValidateTuple()
721 size_t tuple_size = tuple_type ? tuple_type->GetSize() : 0; in ValidateTuple()
722 if (tuple_type) { in ValidateTuple()
727 CHECK(tuple_type->GetDictionary(i, &item_schema)); in ValidateTuple()
/external/tensorflow/tensorflow/compiler/mlir/xla/tests/
Dlegalize-tf-with-tf2xla.mlir47 // CHECK-LABEL: tuple_type
48 func.func @tuple_type(%arg0: tuple<tensor<f32>, tensor<i32>>) -> tensor<f32> {
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dir_emitter.cc143 llvm::Type* tuple_type = llvm_ir::ShapeToIrType(return_shape, module_); in EmitThreadLocalFunctionEpilogue() local
144 llvm::Type* tuple_type_lvalue = tuple_type->getPointerTo(); in EmitThreadLocalFunctionEpilogue()
153 tuple_type, &b_); in EmitThreadLocalFunctionEpilogue()
/external/python/cpython3/Parser/
Dparser.c222 #define tuple_type 1146 macro