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

Method MergeGpuStreamIdx

tensorflow/core/common_runtime/colocation_graph.cc:442–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442bool Member::MergeGpuStreamIdx(const Member& other) {
443 if (gpu_stream_idx_ == -1) {
444 gpu_stream_idx_ = other.gpu_stream_idx_;
445 } else if (other.gpu_stream_idx_ != -1 &&
446 other.gpu_stream_idx_ != gpu_stream_idx_) {
447 return false;
448 }
449
450 return true;
451}
452
453void Member::AssignGpuStreamIdx(Node *node) {
454 if (gpu_stream_idx_ != -1)

Callers 1

ColocateNodesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected