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

Method RefreshStatusOfStreams

tensorflow/compiler/jit/xla_tensor.cc:101–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101Status XlaTensor::RefreshStatusOfStreams() {
102 mutex_lock lock(mu_);
103 Status status;
104 for (se::Stream* stream : streams_defined_on_) {
105 status.Update(stream->RefreshStatus());
106 }
107 return status;
108}
109
110// The pointer tag, OR-ed into the XlaTensor's address to distinguish it from
111// device-side tensors, which are either CPU or GPU memory pointers. This works

Callers 1

CopyDeviceTensorToCPUMethod · 0.80

Calls 2

UpdateMethod · 0.45
RefreshStatusMethod · 0.45

Tested by

no test coverage detected