static */
| 197 | cur_rank_phy_tensor_(cur_rank_phy_tensor) {} |
| 198 | |
| 199 | /* static */ Maybe<EagerGlobalTensorImpl> EagerGlobalTensorImpl::New( |
| 200 | Symbol<GlobalTensorMeta> global_tensor_meta, bool requires_grad, bool is_leaf) { |
| 201 | const auto& parallel_desc = global_tensor_meta->parallel_desc(); |
| 202 | Optional<int64_t> parallel_id; |
| 203 | const auto& device = JUST(parallel_desc->GetTensorDevice4CurrentProcessCtx(¶llel_id)); |
| 204 | return EagerGlobalTensorImpl::New(global_tensor_meta, device, parallel_id, requires_grad, |
| 205 | is_leaf); |
| 206 | } |
| 207 | |
| 208 | namespace { |
| 209 |
nothing calls this directly
no test coverage detected