diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-06-06 08:14:07 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-06 08:19:21 -0700 |
commit | e9a889c5edbe82985b62995435265d59ff229a38 (patch) | |
tree | 5b535578d698f3d5e0caebecf8b363965d5f94c8 /tensorflow/stream_executor/stream.h | |
parent | 9184726ed09b5b1cff66df365dc10a61d77eff48 (diff) |
Pass int parameter by value, not by const reference
PiperOrigin-RevId: 158142102
Diffstat (limited to 'tensorflow/stream_executor/stream.h')
-rw-r--r-- | tensorflow/stream_executor/stream.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tensorflow/stream_executor/stream.h b/tensorflow/stream_executor/stream.h index fa58173115..b919c0095d 100644 --- a/tensorflow/stream_executor/stream.h +++ b/tensorflow/stream_executor/stream.h @@ -1595,18 +1595,14 @@ class Stream { return ThenMemcpy(gpu_dst, gpu_src, size); } - // Entrain onto the stream: a memset of zero at a GPU location of size - // bytes. + // Entrain onto the stream: a memset of zero at a GPU location of size bytes. // The location must not be null. Stream &ThenMemZero(DeviceMemoryBase *location, uint64 size); - // Entrain onto the stream: a memset of a 32-bit pattern at a GPU location - // of - // size bytes, where bytes must be evenly 32-bit sized (i.e. evenly - // divisible + // Entrain onto the stream: a memset of a 32-bit pattern at a GPU location of + // size bytes, where bytes must be evenly 32-bit sized (i.e. evenly divisible // by 4). The location must not be null. - Stream &ThenMemset32(DeviceMemoryBase *location, const uint32 &pattern, - uint64 size); + Stream &ThenMemset32(DeviceMemoryBase *location, uint32 pattern, uint64 size); // Enqueue a forward operation of the RNN model onto the stream. // See DnnSupport::DoRnnForward for more details. |