commit
2897d0dcfd
|
@ -3070,7 +3070,7 @@ void SessionBasic::DumpGraphs(const std::vector<KernelGraphPtr> &graphs) const {
|
|||
void SessionBasic::UnifyMindIR(const KernelGraphPtr &graph) { opt::CommonUnifyMindIR(graph); }
|
||||
|
||||
#ifdef WITH_BACKEND
|
||||
void SessionBasic::InitPsWorker(const KernelGraphPtr &kernel_graph) {
|
||||
void SessionBasic::InitPsWorker(const KernelGraphPtr &kernel_graph) const {
|
||||
if (!ps::PSContext::instance()->is_worker()) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -351,7 +351,7 @@ class BACKEND_EXPORT SessionBasic : public std::enable_shared_from_this<SessionB
|
|||
#ifdef WITH_BACKEND
|
||||
void CheckPSModeConsistence(const KernelGraphPtr &kernel_graph) const;
|
||||
void GetBatchElements(const AnfNodePtr &kernel_node) const;
|
||||
void InitPsWorker(const KernelGraphPtr &kernel_graph);
|
||||
void InitPsWorker(const KernelGraphPtr &kernel_graph) const;
|
||||
#endif
|
||||
// TODO(caifubi): refactor and remove bucket.
|
||||
std::map<uint32_t, std::vector<std::shared_ptr<device::Bucket>>> bucket_map_;
|
||||
|
|
Loading…
Reference in New Issue