Skip to content

Commit

Permalink
const away const qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
weihanmines committed Aug 14, 2023
1 parent 14bc7f5 commit cc39f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorflow/compiler/xla/stream_executor/gpu/gpu_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ tsl::StatusOr<GpuGraphNodeHandle> AddKernelNode(
}

static GpuDevicePtr AsDevicePtr(const DeviceMemoryBase& mem) {
return reinterpret_cast<GpuDevicePtr>(mem.opaque());
return const_cast<GpuDevicePtr>(reinterpret_cast<const GpuDevicePtr>(mem.opaque()));
}

tsl::StatusOr<GpuGraphNodeHandle> AddMemcpyD2DNode(
Expand Down

0 comments on commit cc39f03

Please sign in to comment.