/third_party/mindspore/mindspore/ccsrc/backend/session/ |
D | executor.cc | 71 auto session = task->session_; in IsTaskReady() 109 MS_EXCEPTION_IF_NULL(session_); in Run() 111 graph_id_ = session_->CompileGraphImpl(segment_->nodes_, output_nodes_); in Run() 115 MS_EXCEPTION_IF_NULL(session_); in Run() 116 graph_id_ = session_->CompileGraphImpl(NOT_NULL(func_graph_)); in Run() 120 MS_EXCEPTION_IF_NULL(session_); in Run() 121 session_->BuildGraphImpl(graph_id_); in Run() 125 MS_EXCEPTION_IF_NULL(session_); in Run() 127 auto graph = session_->GetGraph(graph_id_); in Run() 134 session_->LoadInputs(graph_id_, input_tensors_); in Run() [all …]
|
/third_party/mindspore/mindspore/ccsrc/runtime/framework/ |
D | graph_compiler.cc | 296 MS_EXCEPTION_IF_NULL(session_); in CompileGraph() 298 KernelGraphPtr graph = session_->ConstructKernelGraph(nodes, outputs); in CompileGraph() 350 MS_EXCEPTION_IF_NULL(session_); in CompileGraphImpl() 351 session_->InitAllBucket(graph, device_context); in CompileGraphImpl() 353 session_->SetSummaryNodes(graph.get()); in CompileGraphImpl() 380 session_->DumpGraph(graph); in CompileGraphImpl() 398 MS_EXCEPTION_IF_NULL(session_); in CompileGraph() 399 …KernelGraphPtr graph = session_->ConstructSingleOpGraph(op_run_info, *input_tensors, *tensors_mask… in CompileGraph() 429 MS_EXCEPTION_IF_NULL(session_); in Fetch() 430 return session_->GetGraph(graph_id); in Fetch() [all …]
|
/third_party/mindspore/mindspore/lite/src/cxx_api/model/ |
D | model_impl.cc | 69 session_.swap(session); in Build() 88 session_.swap(session); in Build() 115 session_ = session; in Build() 138 session_.swap(session); in Build() 152 auto ret = session_->RunGraph(); in RunGraph() 176 auto ret = session_->RunGraph(before_call_back, after_call_back); in RunGraph() 205 if (session_ == nullptr) { in Predict() 209 auto input_tensors = session_->GetInputs(); in Predict() 282 if (session_ == nullptr) { in GetInputs() 287 auto inputs = session_->GetInputs(); in GetInputs() [all …]
|
D | model.cc | 211 if ((impl_ == nullptr) || (impl_->session_ == nullptr)) { in SetTrainMode() 215 auto ret = (train) ? impl_->session_->Train() : impl_->session_->Eval(); in SetTrainMode() 219 …:GetTrainMode() const { return ((impl_ != nullptr) && (impl_->session_) && (impl_->session_->IsTra… in GetTrainMode() 231 if ((impl_ == nullptr) || (impl_->session_ == nullptr)) { in ApplyGradients() 249 if ((impl_ == nullptr) || (impl_->session_ == nullptr)) { in SetOptimizerParams()
|
/third_party/mindspore/mindspore/lite/examples/transfer_learning/src/ |
D | net_runner.cc | 72 if (session_ != nullptr) delete session_; in ~NetRunner() 81 …session_ = mindspore::session::TrainSession::CreateTransferSession(ms_backbone_file_, ms_head_file… in InitAndFigureInputs() 82 MS_ASSERT(session_ != nullptr); in InitAndFigureInputs() 84 auto inputs = session_->GetInputs(); in InitAndFigureInputs() 96 auto outputs = session_->GetOutputs(); in SearchOutputsForSize() 110 auto inputs = session_->GetInputs(); in FillInputData() 186 session_->Train(); in TrainLoop() 192 session_->RunGraph(nullptr, verbose_ ? after_callback : nullptr); in TrainLoop() 199 session_->Export(cpkt_fn); in TrainLoop() 204 session_->Eval(); in TrainLoop() [all …]
|
/third_party/nghttp2/src/ |
D | h2load_http2_session.cc | 40 : client_(client), session_(nullptr) {} in Http2Session() 42 Http2Session::~Http2Session() { nghttp2_session_del(session_); } in ~Http2Session() 234 nghttp2_session_client_new2(&session_, callbacks, client_, opt); in on_connect() 251 rv = nghttp2_submit_settings(session_, NGHTTP2_FLAG_NONE, iv.data(), niv); in on_connect() 256 nghttp2_session_set_local_window_size(session_, NGHTTP2_FLAG_NONE, 0, in on_connect() 263 if (nghttp2_session_check_request_allowed(session_) == 0) { in submit_request() 277 nghttp2_submit_request(session_, nullptr, nva.data(), nva.size(), in submit_request() 289 auto rv = nghttp2_session_mem_recv(session_, data, len); in on_read() 296 if (nghttp2_session_want_read(session_) == 0 && in on_read() 297 nghttp2_session_want_write(session_) == 0 && client_->wb.rleft() == 0) { in on_read() [all …]
|
D | shrpx_live_check.cc | 117 session_(nullptr), 158 nghttp2_session_del(session_); in disconnect() 159 session_ = nullptr; in disconnect() 592 rv = nghttp2_session_mem_recv(session_, data, len); in on_read() 601 rv = nghttp2_session_terminate_session(session_, NGHTTP2_NO_ERROR); in on_read() 607 if (nghttp2_session_want_read(session_) == 0 && in on_read() 608 nghttp2_session_want_write(session_) == 0 && wb_.rleft() == 0) { in on_read() 629 auto datalen = nghttp2_session_mem_send(session_, &data); in on_write() 646 if (nghttp2_session_want_read(session_) == 0 && in on_write() 647 nghttp2_session_want_write(session_) == 0 && wb_.rleft() == 0) { in on_write() [all …]
|
D | asio_client_session_impl.cc | 51 session_(nullptr), in session_impl() 66 nghttp2_session_del(session_); in ~session_impl() 120 nghttp2_submit_ping(session_, NGHTTP2_FLAG_NONE, nullptr); in handle_ping() 385 auto rv = nghttp2_session_client_new(&session_, callbacks, this); in setup_session() 398 nghttp2_submit_settings(session_, NGHTTP2_FLAG_NONE, iv.data(), iv.size()); in setup_session() 400 nghttp2_session_set_local_window_size(session_, NGHTTP2_FLAG_NONE, 0, in setup_session() 414 rv = nghttp2_submit_trailer(session_, strm.stream_id(), nva.data(), in write_trailer() 431 nghttp2_submit_rst_stream(session_, NGHTTP2_FLAG_NONE, strm.stream_id(), in cancel() 441 nghttp2_session_resume_data(session_, strm.stream_id()); in resume() 562 auto stream_id = nghttp2_submit_request(session_, prio.get(), nva.data(), in submit() [all …]
|
D | asio_server_http2_handler.cc | 244 session_(nullptr), in http2_handler() 258 nghttp2_session_del(session_); in ~http2_handler() 296 rv = nghttp2_session_server_new(&session_, callbacks, this); in start() 302 nghttp2_submit_settings(session_, NGHTTP2_FLAG_NONE, &ent, 1); in start() 333 return !nghttp2_session_want_read(session_) && in should_stop() 334 !nghttp2_session_want_write(session_); in should_stop() 366 rv = nghttp2_submit_response(session_, strm.get_stream_id(), nva.data(), in start_response() 387 rv = nghttp2_submit_trailer(session_, strm.get_stream_id(), nva.data(), in submit_trailer() 410 ::nghttp2::asio_http2::server::stream_error(session_, stream_id, error_code); in stream_error() 428 nghttp2_session_resume_data(session_, strm.get_stream_id()); in resume() [all …]
|
D | shrpx_http2_upstream.cc | 121 session_, settings_payload.byte(), settings_payload.size(), in upgrade_upstream() 139 nghttp2_session_set_stream_user_data(session_, 1, ptr); in upgrade_upstream() 283 nghttp2_session_set_stream_user_data(session_, frame->hd.stream_id, in on_start_request() 915 auto last_stream_id = nghttp2_session_get_last_proc_stream_id(session_); in submit_goaway() 916 nghttp2_submit_goaway(session_, NGHTTP2_FLAG_NONE, last_stream_id, in submit_goaway() 938 rv = nghttp2_submit_shutdown_notice(session_); in start_graceful_shutdown() 1019 session_(nullptr), in Http2Upstream() 1030 nghttp2_session_server_new2(&session_, http2conf.upstream.callbacks, this, in Http2Upstream() 1066 rv = nghttp2_submit_settings(session_, NGHTTP2_FLAG_NONE, entry.data(), in Http2Upstream() 1081 rv = nghttp2_session_set_local_window_size(session_, NGHTTP2_FLAG_NONE, 0, in Http2Upstream() [all …]
|
D | shrpx_http2_session.cc | 197 session_(nullptr), 238 nghttp2_session_del(session_); in disconnect() 239 session_ = nullptr; in disconnect() 751 nghttp2_submit_request(session_, nullptr, nva, nvlen, data_prd, sd.get()); in submit_request() 771 int rv = nghttp2_submit_rst_stream(session_, NGHTTP2_FLAG_NONE, stream_id, in submit_rst_stream() 781 nghttp2_session *Http2Session::get_session() const { return session_; } in get_session() 786 int rv = nghttp2_session_resume_data(session_, in resume_data() 1689 rv = nghttp2_session_client_new2(&session_, http2conf.downstream.callbacks, in connection_made() 1717 rv = nghttp2_submit_settings(session_, NGHTTP2_FLAG_NONE, entry.data(), in connection_made() 1724 session_, NGHTTP2_FLAG_NONE, 0, in connection_made() [all …]
|
D | asio_server_http2_handler.h | 103 rv = nghttp2_session_mem_recv(session_, buffer.data(), len); in on_read() 129 auto nread = nghttp2_session_mem_send(session_, &data); in on_write() 159 nghttp2_session *session_; variable
|
/third_party/grpc/src/core/tsi/ssl/session_cache/ |
D | ssl_session_boringssl.cc | 36 : session_(std::move(session)) {} in BoringSslCachedSession() 40 SSL_SESSION_up_ref(session_.get()); in CopySession() 41 return SslSessionPtr(session_.get()); in CopySession() 45 SslSessionPtr session_; member in tsi::__anone93127ad0111::BoringSslCachedSession
|
/third_party/mindspore/mindspore/lite/src/c_api/ |
D | model_c.cc | 28 ModelC() : session_(nullptr), context_(nullptr) {} in ModelC() 46 std::shared_ptr<lite::LiteSession> session_ = nullptr; member in mindspore::ModelC 60 session_ = std::make_shared<lite::LiteSession>(); in Build() 61 if (session_ == nullptr) { in Build() 65 auto ret = session_->Init(ContextUtils::Convert(model_context)); in Build() 70 ret = session_->LoadModelAndCompileByBuf(static_cast<const char *>(model_data), data_size); in Build() 81 session_ = std::make_shared<lite::LiteSession>(); in Build() 82 if (session_ == nullptr) { in Build() 86 auto ret = session_->Init(ContextUtils::Convert(model_context)); in Build() 91 ret = session_->LoadModelAndCompileByPath(model_path); in Build() [all …]
|
/third_party/node/src/ |
D | node_http2.cc | 77 Http2Scope::Http2Scope(Http2Session* session) : session_(session) { in Http2Scope() 78 if (!session_) return; in Http2Scope() 82 if (session_->is_in_scope() || session_->is_write_scheduled()) { in Http2Scope() 83 session_.reset(); in Http2Scope() 86 session_->set_in_scope(); in Http2Scope() 90 if (!session_) return; in ~Http2Scope() 91 session_->set_in_scope(false); in ~Http2Scope() 92 if (!session_->is_write_scheduled()) in ~Http2Scope() 93 session_->MaybeScheduleWrite(); in ~Http2Scope() 238 session_(session), in Http2Settings() [all …]
|
D | inspector_profiler.h | 74 std::unique_ptr<inspector::InspectorSession> session_; variable 101 std::unique_ptr<inspector::InspectorSession> session_; 121 std::unique_ptr<inspector::InspectorSession> session_; 141 std::unique_ptr<inspector::InspectorSession> session_;
|
D | inspector_js_api.cc | 95 session_ = ConnectionType::Connect( in JSBindingsConnection() 125 session_.reset(); in Disconnect() 141 if (session->session_) { in Dispatch() 142 session->session_->Dispatch( in Dispatch() 150 "session", sizeof(*session_), "InspectorSession"); in MemoryInfo() 161 std::unique_ptr<InspectorSession> session_; member in node::inspector::__anon933ce84e0111::JSBindingsConnection
|
/third_party/mindspore/mindspore/lite/examples/train_lenet/src/ |
D | net_runner.cc | 71 auto inputs = cb_data.session_->GetInputs(); in StepBegin() 143 if (session_ != nullptr) delete session_; in ~NetRunner() 155 …session_ = mindspore::session::TrainSession::CreateTrainSession(ms_file_, &context, true, &train_c… in InitAndFigureInputs() 156 MS_ASSERT(session_ != nullptr); in InitAndFigureInputs() 158 session_->SetupVirtualBatch(virtual_batch_); in InitAndFigureInputs() 159 loop_ = mindspore::session::TrainLoop::CreateTrainLoop(session_); in InitAndFigureInputs() 168 auto inputs = session_->GetInputs(); in InitAndFigureInputs() 248 session_->Export(trained_fn); in Main()
|
/third_party/mindspore/mindspore/lite/micro/coder/ |
D | coder.cc | 55 session_ = CreateCoderSession(); in Run() 56 if (session_ == nullptr) { in Run() 60 STATUS status = session_->Init(model_path); in Run() 66 status = session_->Build(); in Run() 71 status = session_->Run(); in Run() 76 status = session_->GenerateCode(); in Run()
|
/third_party/mindspore/mindspore/lite/src/cxx_api/train/ |
D | model.cc | 31 if ((impl_ == nullptr) || (impl_->session_ == nullptr) || ds == nullptr) { in Train() 35 … std::unique_ptr<session::TrainLoop>(session::TrainLoop::CreateTrainLoop((impl_->session_).get())); in Train() 70 if ((impl_ == nullptr) || (impl_->session_ == nullptr) || ds == nullptr) { in Evaluate() 75 … std::unique_ptr<session::TrainLoop>(session::TrainLoop::CreateTrainLoop((impl_->session_).get())); in Evaluate()
|
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/engine/cache/perf/ |
D | cache_perf_run.cc | 277 session_ = rq->GetSessionId(); in GetSession() 278 std::cout << "Session: " << session_ << std::endl; in GetSession() 279 cache_builder_.SetSessionId(session_); in GetSession() 290 session_(0), in CachePerfRun() 297 if (session_ != 0) { in ~CachePerfRun() 303 cinfo.set_session_id(session_); in ~CachePerfRun() 309 std::cout << "Drop session " << session_ << " successful" << std::endl; in ~CachePerfRun() 443 …std::string pipeline_cfg = std::to_string(i) + "," + std::to_string(session_) + "," + std::to_stri… in StartPipelines() 482 cinfo.set_session_id(session_); in Cleanup() 486 std::cout << "Drop session " << session_ << " successful" << std::endl; in Cleanup() [all …]
|
/third_party/mindspore/mindspore/lite/tools/benchmark/ |
D | benchmark.cc | 114 auto tensor = session_->GetOutputByTensorName(tensor_name); in GetDataTypeByTensorName() 157 if (this->benchmark_tensor_names_ != session_->GetOutputTensorNames()) { in CompareOutput() 163 tensor::MSTensor *tensor = session_->GetOutputByTensorName(tensor_name); in CompareOutput() 251 auto status = session_->RunGraph(); in MarkPerformance() 266 auto inputs = session_->GetInputs(); in MarkPerformance() 270 session_->BindThread(true); in MarkPerformance() 272 auto status = session_->RunGraph(before_call_back_, after_call_back_); in MarkPerformance() 284 session_->BindThread(false); in MarkPerformance() 337 status = session_->RunGraph(before_call_back_, after_call_back_); in MarkAccuracy() 433 session_ = session::LiteSession::CreateSession(context.get()); in RunBenchmark() [all …]
|
/third_party/mindspore/mindspore/lite/src/train/ |
D | train_loop.cc | 70 ret = load_func(cb_data.session_->GetInputs(), &row_vec); in Train() 142 ret = load_func(cb_data.session_->GetInputs(), &row_vec); in Eval() 151 auto outputs = cb_data.session_->GetPredictions(); in Eval() 152 for (auto metric : metrics_) metric->Update(cb_data.session_->GetInputs(), outputs); in Eval()
|
D | lr_scheduler.cc | 60 float lr = cb_data.session_->GetLearningRate(); in EpochEnd() 63 int ret = cb_data.session_->SetLearningRate(lr); in EpochEnd()
|
/third_party/mindspore/mindspore/lite/include/train/ |
D | train_loop_callback.h | 31 : train_mode_(train_mode), epoch_(epoch), session_(session), loop_(loop) {} in TrainLoopCallBackData() 36 LiteSession *session_; /**< pointer to the LiteSession */ member
|