Home
last modified time | relevance | path

Searched refs:ParseFromArray (Results 1 – 25 of 29) sorted by relevance

12

/third_party/mindspore/tests/ut/cpp/ps/core/
Dtcp_client_tests.cc36 message.ParseFromArray(data, size); in TEST_F()
50 message.ParseFromArray(data, size); in TEST_F()
Dtcp_pb_server_test.cc40 kv_message.ParseFromArray(data, size); in SetUp()
69 message.ParseFromArray(data, size); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/fl/server/
Ddistributed_count_service.cc122 … (void)count_rsp.ParseFromArray(report_cnt_rsp_msg->data(), SizeToInt(report_cnt_rsp_msg->size())); in Count()
158 (void)count_reach_threshold_rsp.ParseFromArray(query_cnt_enough_rsp_msg->data(), in CountReachThreshold()
194 (void)report_count_req.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleCountRequest()
252 (void)count_reach_threshold_req.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleCountReachThresholdRequest()
282 (void)counter_event.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleCounterEvent()
Ddistributed_metadata_store.cc147 …(void)get_metadata_rsp.ParseFromArray(get_meta_rsp_msg->data(), SizeToInt(get_meta_rsp_msg->size()… in GetMetadata()
186 (void)meta_with_name.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleUpdateMetadataRequest()
207 (void)get_metadata_req.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleGetMetadataRequest()
Diteration.cc357 …(void)sync_iter_rsp.ParseFromArray(sync_iter_rsp_msg->data(), SizeToInt(sync_iter_rsp_msg->size())… in SyncIteration()
369 (void)sync_iter_req.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleSyncIterationRequest()
420 (void)notify_leader_to_next_iter_req.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleNotifyLeaderMoveToNextIterRequest()
482 (void)prepare_next_iter_req.ParseFromArray(message->data(), SizeToInt(message->len())); in HandlePrepareForNextIterRequest()
526 (void)proceed_to_next_iter_req.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleMoveToNextIterRequest()
590 (void)end_last_iter_req.ParseFromArray(message->data(), SizeToInt(message->len())); in HandleEndLastIterRequest()
/third_party/mindspore/mindspore/ccsrc/ps/
Dparameter_server.cc630 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandlePushReq()
641 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandlePullReq()
660 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandleInitWeights()
685 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandleInitWeightToOptimId()
703 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandleInitInputsShape()
719 CHECK_RETURN_TYPE(embedding_table_meta.ParseFromArray(data.get(), SizeToInt(size))); in HandleInitEmbeddings()
756 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandleCheckReadyForPush()
775 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandleCheckReadyForPull()
793 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandleEmbeddingLookup()
815 CHECK_RETURN_TYPE(input.ParseFromArray(data.get(), SizeToInt(size))); in HandleUpdateEmbeddings()
Dworker.cc320 CHECK_RETURN_TYPE(message.ParseFromArray(resp.at(i)->data(), resp.at(i)->size())); in DoPSEmbeddingLookup()
994 CHECK_RETURN_TYPE(message.ParseFromArray(resp.at(i)->data(), SizeToInt(resp.at(i)->size()))); in SendForPull()
/third_party/protobuf/src/google/protobuf/
Dunknown_field_set.h164 bool ParseFromArray(const void* data, int size);
166 return ParseFromArray(data.data(), static_cast<int>(data.size())); in ParseFromString()
Dmessage_unittest.inc377 EXPECT_TRUE(message.ParseFromArray("", 0));
380 EXPECT_FALSE(message.ParseFromArray("\0", 1));
383 EXPECT_FALSE(message.ParseFromArray("\200", 1));
386 EXPECT_FALSE(message.ParseFromArray("\014", 1));
Ddescriptor_database.cc558 if (file->ParseFromArray(encoded_file_descriptor, size)) { in Add()
606 if (!file_proto.ParseFromArray(encoded_file.first, encoded_file.second)) { in FindNameOfFileContainingSymbol()
878 return output->ParseFromArray(encoded_file.first, encoded_file.second); in MaybeParse()
Dunknown_field_set.cc234 bool UnknownFieldSet::ParseFromArray(const void* data, int size) { in ParseFromArray() function in google::protobuf::UnknownFieldSet
Dmessage_lite.h325 PROTOBUF_ATTRIBUTE_REINITIALIZES bool ParseFromArray(const void* data,
Dmessage_lite.cc324 bool MessageLite::ParseFromArray(const void* data, int size) { in ParseFromArray() function in google::protobuf::MessageLite
Dextension_set_unittest.cc1326 EXPECT_TRUE(msg.ParseFromArray(wire_bytes, 2)); in TEST()
/third_party/mindspore/mindspore/core/load_mindir/
Dload_model.cc138 …if (!model->ParseFromArray(reinterpret_cast<char *>(plain_data.get()), static_cast<int32_t>(plain_… in ParseModelProto()
161 …if (!graph->ParseFromArray(reinterpret_cast<char *>(plain_data.get()), static_cast<int32_t>(plain_… in ParseGraphProto()
/third_party/mindspore/mindspore/ccsrc/ps/core/communicator/
Dtcp_message_handler.cc81 …pb_message->ParseFromArray(message_buffer_.get(), UintToInt(message_header_.message_meta_length_))… in ReceiveMessage()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/cache/perf/
Dcache_perf_run.cc368 …CHECK_FAIL_RETURN_UNEXPECTED(epoch_worker_summary.ParseFromArray(p, msg.GetProtoBufSz()), "Parse f… in ListenToPipeline()
382 CHECK_FAIL_RETURN_UNEXPECTED(proto.ParseFromArray(p, msg.GetProtoBufSz()), "Parse fail"); in ListenToPipeline()
395 CHECK_FAIL_RETURN_UNEXPECTED(proto.ParseFromArray(p, msg.GetProtoBufSz()), "Parse fail"); in ListenToPipeline()
/third_party/mindspore/mindspore/ccsrc/ps/core/
Dabstract_node.cc52 CHECK_RETURN_TYPE(register_resp_message.ParseFromArray(data, SizeToInt(size))); in ProcessRegisterResp()
572 CHECK_RETURN_TYPE(heartbeat_resp_message.ParseFromArray(data, SizeToInt(size))); in ProcessHeartbeatResp()
625 CHECK_RETURN_TYPE(fetch_servers_resp_message.ParseFromArray(data, SizeToInt(size))); in ProcessFetchServersResp()
647 CHECK_RETURN_TYPE(send_meta_message.ParseFromArray(data, SizeToInt(size))); in ProcessSendMetadata()
730 CHECK_RETURN_TYPE(event_resp_message.ParseFromArray(data, SizeToInt(size))); in ProcessEvent()
745 CHECK_RETURN_TYPE(scale_out_message.ParseFromArray(data, SizeToInt(size))); in ProcessScaleOut()
765 CHECK_RETURN_TYPE(scale_in_message.ParseFromArray(data, SizeToInt(size))); in ProcessScaleIn()
Dscheduler_node.cc57 CHECK_RETURN_TYPE(heartbeat_message.ParseFromArray(data, SizeToInt(size))); in ProcessHeartbeat()
147 CHECK_RETURN_TYPE(register_message.ParseFromArray(data, SizeToInt(size))); in ProcessRegister()
268 scale_out_done_message.ParseFromArray(data, SizeToInt(size)); in ProcessScaleOutDone()
296 scale_in_done_message.ParseFromArray(data, SizeToInt(size)); in ProcessScaleInDone()
324 event_message.ParseFromArray(data, SizeToInt(size)); in ProcessSendEvent()
/third_party/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc100 if (!file_proto.ParseFromArray(str, len)) { in GetFileDescriptorProto()
Ddescriptor_pool.cc590 if (!file_proto.ParseFromArray(message_type, message_len)) { in AddSerializedFile()
/third_party/grpc/test/cpp/grpclb/
Dgrpclb_api_test.cc74 request.ParseFromArray(GRPC_SLICE_START_PTR(slice), num_bytes_written); in TEST_F()
/third_party/grpc/third_party/upb/benchmarks/
Dbenchmark.cc226 proto.ParseFromArray(descriptor.data, descriptor.size); in BM_SerializeDescriptor_Proto2()
/third_party/libphonenumber/cpp/src/phonenumbers/
Dshortnumberinfo.cc38 if (!metadata->ParseFromArray(short_metadata_get(), short_metadata_size())) { in LoadCompiledInMetadata()
Dphonenumbermatcher.cc175 if (!alternate_formats->ParseFromArray(alternate_format_get(), in LoadAlternateFormats()

12