| 65 | } |
| 66 | |
| 67 | Maybe<int64_t> Scope::GetParallelDescSymbolId(const OperatorConf& op_conf) const { |
| 68 | if (op_conf.device_tag() == "cpu" || IsCpuOnly(op_conf)) { |
| 69 | return scope_proto_.host_parallel_desc_symbol_id(); |
| 70 | } else { |
| 71 | return scope_proto_.device_parallel_desc_symbol_id(); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | Maybe<Symbol<ParallelDesc>> Scope::GetParallelDesc(const OperatorConf& op_conf) const { |
| 76 | return placement_scope_->GetParallelDesc(op_conf.device_tag(), op_conf); |
no test coverage detected