Home
last modified time | relevance | path

Searched refs:ToProto (Results 1 – 25 of 128) sorted by relevance

123456

/external/perfetto/src/perfetto_cmd/
Dpbtxt_to_pb_unittest.cc48 TraceConfig ToProto(const std::string& input) { in ToProto() function
62 TraceConfig config = ToProto(R"( in TEST()
69 TraceConfig config = ToProto(R"( in TEST()
78 TraceConfig config = ToProto(R"( in TEST()
85 EXPECT_EQ(ToProto(R"( in TEST()
89 EXPECT_EQ(ToProto(R"( in TEST()
94 EXPECT_EQ(ToProto(R"( in TEST()
98 EXPECT_EQ(ToProto(R"( in TEST()
103 EXPECT_EQ(ToProto(R"( in TEST()
107 EXPECT_EQ(ToProto(R"( in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dtype_to_shape_test.cc82 TypeToShape(VectorType::get({8, 128}, b.getIntegerType(32))).ToProto(), in TEST()
84 ShapeUtil::MakeShape(PrimitiveType::S32, {8, 128}).ToProto())); in TEST()
86 TypeToShape(VectorType::get({8, 128}, b.getF32Type())).ToProto(), in TEST()
88 ShapeUtil::MakeShape(PrimitiveType::F32, {8, 128}).ToProto())); in TEST()
92 TypeToShape(VectorType::get({8, 128}, b.getIntegerType(17))).ToProto(), in TEST()
93 EqualsProto(Shape().ToProto())); in TEST()
102 TypeToShape(MemRefType::get({8, 128}, b.getF32Type())).ToProto(), in TEST()
104 ShapeUtil::MakeShape(PrimitiveType::F32, {8, 128}).ToProto())); in TEST()
106 TypeToShape(MemRefType::get({100, 13, 210}, b.getF32Type())).ToProto(), in TEST()
108 ShapeUtil::MakeShape(PrimitiveType::F32, {100, 13, 210}).ToProto())); in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_instructions.cc95 HloInstructionProto HloBatchNormInstruction::ToProto() const { in ToProto() function in xla::HloBatchNormInstruction
96 HloInstructionProto proto = HloInstruction::ToProto(); in ToProto()
176 HloInstructionProto HloFftInstruction::ToProto() const { in ToProto() function in xla::HloFftInstruction
177 HloInstructionProto proto = HloInstruction::ToProto(); in ToProto()
216 HloInstructionProto HloCopyStartInstruction::ToProto() const { in ToProto() function in xla::HloCopyStartInstruction
217 HloInstructionProto proto = HloInstruction::ToProto(); in ToProto()
260 HloInstructionProto HloCompareInstruction::ToProto() const { in ToProto() function in xla::HloCompareInstruction
261 HloInstructionProto proto = HloInstruction::ToProto(); in ToProto()
346 HloInstructionProto HloTriangularSolveInstruction::ToProto() const { in ToProto() function in xla::HloTriangularSolveInstruction
347 HloInstructionProto proto = HloInstruction::ToProto(); in ToProto()
[all …]
Dhlo_instructions.h39 HloInstructionProto ToProto() const override;
114 HloInstructionProto ToProto() const override;
142 HloInstructionProto ToProto() const override;
166 HloInstructionProto ToProto() const override;
192 HloInstructionProto ToProto() const override;
217 HloInstructionProto ToProto() const override;
261 HloInstructionProto ToProto() const override;
282 HloInstructionProto ToProto() const override;
375 HloInstructionProto ToProto() const override;
403 HloInstructionProto ToProto() const override;
[all …]
Dhlo_proto_util.cc27 BufferAssignmentProto proto_assignment = assignment.ToProto(); in MakeHloProto()
34 HloModuleProto proto_module = module.ToProto(); in MakeHloProto()
Dhlo_module_group.cc61 HloModuleGroupProto HloModuleGroup::ToProto() const { in ToProto() function in xla::HloModuleGroup
65 *proto.add_hlo_modules() = module->ToProto(); in ToProto()
/external/tensorflow/tensorflow/compiler/xrt/tests/
Draw_api_test.cc134 return array.ToProto(); in CreateR0()
166 return tuple.ToProto(); in TwoElementTuple()
174 return tuple.ToProto(); in BasedTwoElementTuple()
179 return scalar.ToProto(); in ScalarLiteral()
188 return nested.ToProto(); in NestedTuple()
198 return nested1.ToProto(); in MakeTuple0()
203 return array.ToProto(); in FloatVector()
210 return array.ToProto(); in FloatMatrix()
238 << a.ToProto().DebugString() << "\n!=\n" in CompareLiteralToLiteralProto()
248 << a.ToProto().DebugString() << "\n!=\n" in CompareLiterals()
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dreplay_test.cc58 ASSERT_TRUE(protobuf_util::ProtobufEquals(original_shape->ToProto(), in TEST_F()
59 replayed_shape->ToProto())); in TEST_F()
91 ASSERT_TRUE(protobuf_util::ProtobufEquals(original_shape->ToProto(), in XLA_TEST_F()
92 replayed_shape->ToProto())); in XLA_TEST_F()
138 ASSERT_TRUE(protobuf_util::ProtobufEquals(original_shape->ToProto(), in TEST_F()
139 replayed_shape->ToProto())); in TEST_F()
Dclient_test.cc54 .ToProto(); in XLA_TEST_F()
89 .ToProto(); in XLA_TEST_F()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dmessage_wrappers_test.cc176 CheckRunStepRequest(ProtoRunStepRequest(&in_memory_request.ToProto())); in TEST()
177 CheckRunStepRequest(ProtoRunStepRequest(&proto_request.ToProto())); in TEST()
188 &mutable_proto_run_step_request.ToProto()); in TEST()
195 CheckRunGraphRequest(ProtoRunGraphRequest(&request.ToProto())); in TEST()
203 CheckRunGraphRequest(ProtoRunGraphRequest(&request.ToProto())); in TEST()
211 CheckRunGraphRequest(ProtoRunGraphRequest(&request.ToProto())); in TEST()
219 CheckRunGraphRequest(ProtoRunGraphRequest(&request.ToProto())); in TEST()
227 CheckRunGraphRequest(ProtoRunGraphRequest(&request.ToProto())); in TEST()
235 CheckRunGraphRequest(ProtoRunGraphRequest(&request.ToProto())); in TEST()
Dmessage_wrappers.h99 virtual const RunStepRequest& ToProto() const = 0;
133 const RunStepRequest& ToProto() const override;
184 const RunStepRequest& ToProto() const override;
225 const RunStepRequest& ToProto() const override;
301 virtual const RunGraphRequest& ToProto() const = 0;
346 const RunGraphRequest& ToProto() const override;
408 const RunGraphRequest& ToProto() const override;
451 const RunGraphRequest& ToProto() const override;
Dmessage_wrappers.cc108 return ToProto().DebugString(); in DebugString()
111 const RunStepRequest& InMemoryRunStepRequest::ToProto() const { in ToProto() function in tensorflow::InMemoryRunStepRequest
223 const RunStepRequest& MutableProtoRunStepRequest::ToProto() const { in ToProto() function in tensorflow::MutableProtoRunStepRequest
287 const RunStepRequest& ProtoRunStepRequest::ToProto() const { return *request_; } in ToProto() function in tensorflow::ProtoRunStepRequest
399 const RunGraphRequest& InMemoryRunGraphRequest::ToProto() const { in ToProto() function in tensorflow::InMemoryRunGraphRequest
550 const RunGraphRequest& MutableProtoRunGraphRequest::ToProto() const { in ToProto() function in tensorflow::MutableProtoRunGraphRequest
611 const RunGraphRequest& ProtoRunGraphRequest::ToProto() const { in ToProto() function in tensorflow::ProtoRunGraphRequest
/external/tensorflow/tensorflow/compiler/xla/
Dshape.cc58 ShapeProto Shape::ToProto() const { in ToProto() function in xla::Shape
70 *proto.add_tuple_shapes() = shape.ToProto(); in ToProto()
73 *proto.mutable_layout() = layout().ToProto(); in ToProto()
206 ProgramShapeProto ProgramShape::ToProto() const { in ToProto() function in xla::ProgramShape
209 *proto.add_parameters() = shape.ToProto(); in ToProto()
211 *proto.mutable_result() = result().ToProto(); in ToProto()
Dshape.h52 ShapeProto ToProto() const;
170 string SerializeAsString() const { return ToProto().SerializeAsString(); } in SerializeAsString()
171 string ShortDebugString() const { return ToProto().ShortDebugString(); } in ShortDebugString()
172 string DebugString() const { return ToProto().DebugString(); } in DebugString()
279 ProgramShapeProto ToProto() const;
329 string ShortDebugString() const { return ToProto().ShortDebugString(); } in ShortDebugString()
330 string DebugString() const { return ToProto().DebugString(); } in DebugString()
Dlayout.cc24 TileProto Tile::ToProto() const { in ToProto() function in xla::Tile
63 LayoutProto Layout::ToProto() const { in ToProto() function in xla::Layout
71 *proto.add_tiles() = tile.ToProto(); in ToProto()
/external/tensorflow/tensorflow/core/kernels/
Dgpu_utils.cc141 *instr.mutable_input() = input_desc.ToProto(element_type); in LogConvAutotuneResults()
142 *instr.mutable_filter() = filter_desc.ToProto(element_type); in LogConvAutotuneResults()
143 *instr.mutable_output() = output_desc.ToProto(element_type); in LogConvAutotuneResults()
144 *instr.mutable_conv_desc() = conv_desc.ToProto(); in LogConvAutotuneResults()
184 *instr.mutable_input() = input_desc.ToProto(element_type); in LogFusedConvForwardAutotuneResults()
185 *instr.mutable_filter() = filter_desc.ToProto(element_type); in LogFusedConvForwardAutotuneResults()
186 *instr.mutable_output() = output_desc.ToProto(element_type); in LogFusedConvForwardAutotuneResults()
187 *instr.mutable_conv_desc() = conv_desc.ToProto(); in LogFusedConvForwardAutotuneResults()
/external/llvm-project/clang/unittests/AST/
DASTImporterGenericRedeclTest.cpp249 auto *ToProto = FirstDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionAfterImportedPrototype() local
251 EXPECT_TRUE(ImportedProto == ToProto); in TypedTest_ImportDefinitionAfterImportedPrototype()
253 EXPECT_FALSE(ToProto->isThisDeclarationADefinition()); in TypedTest_ImportDefinitionAfterImportedPrototype()
256 CheckPreviousDecl(ToProto, ToDef); in TypedTest_ImportDefinitionAfterImportedPrototype()
272 auto *ToProto = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportPrototypeAfterImportedDefinition() local
274 EXPECT_TRUE(ImportedProto == ToProto); in TypedTest_ImportPrototypeAfterImportedDefinition()
276 EXPECT_FALSE(ToProto->isThisDeclarationADefinition()); in TypedTest_ImportPrototypeAfterImportedDefinition()
278 CheckPreviousDecl(ToDef, ToProto); in TypedTest_ImportPrototypeAfterImportedDefinition()
342 auto *ToProto = LastDeclMatcher<DeclTy>().match(ToTU, getPattern()); in TypedTest_ImportDefinitionThenPrototype() local
344 EXPECT_TRUE(ImportedProto == ToProto); in TypedTest_ImportDefinitionThenPrototype()
[all …]
/external/tensorflow/tensorflow/compiler/xla/client/
Dxla_builder.cc87 return ShapeUtil::ChangeElementType(Shape(shape_proto), PRED).ToProto(); in ConvertShapeProtoToPred()
94 *instr->mutable_shape() = shape.ToProto(); in SetInstructionAsConstant()
95 *instr->mutable_literal() = literal_broadcast.ToProto(); in SetInstructionAsConstant()
164 *instr.mutable_shape() = program_shape.result().ToProto(); in BuildFusion()
175 *instr.mutable_shape() = shape.ToProto(); in BuildBitcast()
394 *instr.mutable_shape() = param_shape.ToProto(); in SetDynamicBinding()
477 instruction_shapes_[index]->ToProto(); in Build()
484 *entry.mutable_program_shape() = program_shape.ToProto(); in Build()
510 dynamic_parameter_binding_.ToProto(); in Build()
546 *module->mutable_input_output_alias() = config.ToProto(); in PopulateInputOutputAlias()
[all …]
Dsharding_builder.cc45 *result.mutable_tile_shape() = tile_shape.ToProto(); in Tile()
61 *result.mutable_tile_shape() = tile_shape.ToProto(); in Tile1D()
Dclient.cc46 *request.mutable_shape_with_layout() = shape_with_layout->ToProto(); in Transfer()
71 *request.mutable_literal() = literal.ToProto(); in TransferToServer()
99 *request.mutable_literal() = literal.ToProto(); in TransferToInfeed()
127 *request.mutable_shape_with_layout() = shape_with_layout->ToProto(); in TransferFromOutfeed()
189 *request.mutable_output_layout() = output_layout->ToProto(); in ComputeConstant()
236 *request.add_input_shape_with_layout() = arg_shape.ToProto(); in Compile()
Dexecutable_build_options.cc118 build_options.result_layout()->ToProto(); in CreateExecutionOptions()
123 result_shape.ToProto(); in CreateExecutionOptions()
/external/tensorflow/tensorflow/core/framework/
Dvariant_tensor_data.cc42 void VariantTensorData::ToProto(VariantTensorDataProto* proto) const { in ToProto() function in tensorflow::VariantTensorData
76 ToProto(&proto); in SerializeAsString()
82 ToProto(&proto); in SerializeToString()
Dfunction_test.cc1170 EXPECT_EQ(0, lib_def.ToProto().function_size()); in TEST()
1171 EXPECT_EQ(0, lib_def.ToProto().gradient_size()); in TEST()
1185 EXPECT_EQ(1, lib_def.ToProto().function_size()); in TEST()
1186 EXPECT_EQ(1, lib_def.ToProto().gradient_size()); in TEST()
1206 EXPECT_EQ(1, lib_def.ToProto().function_size()); in TEST()
1207 EXPECT_EQ(1, lib_def.ToProto().gradient_size()); in TEST()
1221 EXPECT_EQ(1, lib_def.ToProto().function_size()); in TEST()
1222 EXPECT_EQ(1, lib_def.ToProto().gradient_size()); in TEST()
1242 EXPECT_EQ(1, lib_def.ToProto().function_size()); in TEST()
1243 EXPECT_EQ(1, lib_def.ToProto().gradient_size()); in TEST()
[all …]
Dmodel.cc242 Status ToProto(ModelProto::Node* node_proto) const { in ToProto() function in tensorflow::data::model::__anon39d565360111::InterleaveMany
243 TF_RETURN_IF_ERROR(Node::ToProto(node_proto)); in ToProto()
418 Status ToProto(ModelProto::Node* node_proto) const { in ToProto() function in tensorflow::data::model::__anon39d565360111::AsyncInterleaveMany
419 TF_RETURN_IF_ERROR(Node::ToProto(node_proto)); in ToProto()
512 Status ToProto(ModelProto::Node* node_proto) const { in ToProto() function in tensorflow::data::model::__anon39d565360111::KnownRatio
513 TF_RETURN_IF_ERROR(Node::ToProto(node_proto)); in ToProto()
733 Status ToProto(ModelProto::Node* node_proto) const { in ToProto() function in tensorflow::data::model::__anon39d565360111::AsyncKnownRatio
734 TF_RETURN_IF_ERROR(Node::ToProto(node_proto)); in ToProto()
855 Status ToProto(ModelProto::Node* node_proto) const { in ToProto() function in tensorflow::data::model::__anon39d565360111::UnknownRatio
856 TF_RETURN_IF_ERROR(Node::ToProto(node_proto)); in ToProto()
[all …]
/external/tensorflow/tensorflow/core/profiler/utils/
Dtfstreamz_utils.cc56 tfstreamz::Percentiles ToProto(const monitoring::Percentiles& percentiles) { in ToProto() function
119 xevent.AddStatValue(*metadata, ToProto(point->percentiles_value)); in SerializeToXPlane()

123456