Skip to content

Commit

Permalink
Automated Code Change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 624422733
  • Loading branch information
tensorflower-gardener committed Apr 13, 2024
1 parent 0ecc83e commit 63756b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tensorflow/compiler/jit/pjrt_device_context.cc
Expand Up @@ -93,7 +93,7 @@ void PjRtDeviceContext::CopyDeviceTensorToCPU(const Tensor* device_tensor,
Device* device,
Tensor* cpu_tensor,
StatusCallback done) {
profiler::TraceMe traceme("PjRtDeviceContext::CopyDeviceTensorToCPU");
tsl::profiler::TraceMe traceme("PjRtDeviceContext::CopyDeviceTensorToCPU");
if (device_tensor->NumElements() == 0) {
VLOG(2) << "CopyDeviceTensorToCPU empty tensor";
done(absl::OkStatus());
Expand Down Expand Up @@ -146,7 +146,7 @@ void PjRtDeviceContext::CopyCPUTensorToDevice(const Tensor* cpu_tensor,
Tensor* device_tensor,
StatusCallback done,
bool sync_dst_compute) const {
profiler::TraceMe traceme("PjRtDeviceContext::CopyCPUTensorToDevice");
tsl::profiler::TraceMe traceme("PjRtDeviceContext::CopyCPUTensorToDevice");
if (cpu_tensor->NumElements() == 0) {
VLOG(2) << "CopyCPUTensorToDevice empty tensor";
done(absl::OkStatus());
Expand Down Expand Up @@ -240,7 +240,7 @@ void PjRtDeviceToDeviceCopy(DeviceContext* send_dev_context,
AllocatorAttributes dst_alloc_attr,
const Tensor* input, Tensor* output,
int dev_to_dev_stream_index, StatusCallback done) {
profiler::TraceMe traceme("PjRtDevice_DeviceToDeviceCopy");
tsl::profiler::TraceMe traceme("PjRtDevice_DeviceToDeviceCopy");
if (input->NumElements() == 0) {
VLOG(2) << "PjRtDevice_DeviceToDeviceCopy empty tensor";
done(absl::OkStatus());
Expand Down
3 changes: 2 additions & 1 deletion tensorflow/compiler/jit/xla_device.cc
Expand Up @@ -485,7 +485,8 @@ void XlaDevice::ComputeAsync(AsyncOpKernel* op_kernel, OpKernelContext* context,

Status XlaDevice::Sync() {
VLOG(1) << "XlaDevice::Sync";
profiler::TraceMe activity("XlaDevice::Sync", profiler::TraceMeLevel::kInfo);
tsl::profiler::TraceMe activity("XlaDevice::Sync",
tsl::profiler::TraceMeLevel::kInfo);
std::shared_ptr<se::Stream> stream;
{
mutex_lock lock(mu_);
Expand Down

0 comments on commit 63756b7

Please sign in to comment.