MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / InitializeCollectiveContext

Method InitializeCollectiveContext

tensorflow/core/common_runtime/ring_alg.cc:243–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243Status RingAlg::InitializeCollectiveContext(CollectiveContext* col_ctx) {
244 DCHECK(col_ctx->dev_mgr);
245 col_ctx_ = col_ctx;
246 col_params_ = &col_ctx->col_params;
247 return collective_util::InitializeDeviceAndLocality(
248 col_ctx->dev_mgr, col_ctx->device_name, &col_ctx->device,
249 &col_ctx->device_locality);
250}
251
252string RingAlg::TensorDebugString(const Tensor& tensor) {
253 const DeviceBase::GpuDeviceInfo* gpu_device_info =

Callers 4

DoGatherMethod · 0.45
DoReduceMethod · 0.45
ExecuteAsyncMethod · 0.45
DoBroadcastMethod · 0.45

Calls 1

Tested by 3

DoGatherMethod · 0.36
DoReduceMethod · 0.36
DoBroadcastMethod · 0.36