- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for WaitForDefinitionEventOnStream (0.33 sec)
-
tensorflow/compiler/jit/xla_tensor.cc
index_to_buffer.second = buffer.Release(); } VLOG(4) << shaped_buffer.ToString(); set_shaped_buffer(std::move(shaped_buffer)); return absl::OkStatus(); } void XlaTensor::WaitForDefinitionEventOnStream(se::Stream* stream) { mutex_lock lock(mu_); if (!definition_event_) { return; } // The set of defined streams is expected to be very small indeed (usually
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device_context.cc
} device_to_host_stream = std::shared_ptr<se::Stream>(std::move(ptr_or_status.value())); } XlaTensor* xla_tensor = XlaTensor::FromTensor(device_tensor); xla_tensor->WaitForDefinitionEventOnStream(device_to_host_stream.get()); // Transfer manager requires the shape of the shaped buffer to be the same as // literal shape except for the layout. Set the literal to use xla_tensor's
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tpu_device.cc
<< " output buffers: " << xla_output->shaped_buffer().ToString(); // Wait for definition event of the source tensor so the input buffers are // available. xla_input->WaitForDefinitionEventOnStream(dst_device_to_device_stream); // Wait for the destination tensor buffers to be ready, if they are not // available for an immediate write.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.cc
<< "Must have a stream available when using XLA tensors!"; XlaTensor* xla_tensor = XlaTensor::FromTensor(t); CHECK(xla_tensor); xla_tensor->WaitForDefinitionEventOnStream( ctx->op_device_context()->stream()); } arguments.emplace_back(device_shape, host_shape); xla::ExecutionInput& execution_input = arguments.back();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 40.4K bytes - Viewed (0)