Skip to content

Commit 888855a

Browse files
byronyijhseu
authored andcommitted
1 parent ebc421d commit 888855a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tensorflow/core/framework/op_kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class OpKernelConstruction {
310310
FunctionLibraryRuntime* function_library() const { return flib_; }
311311

312312
// The GraphDef version whose behavior we should follow.
313-
const int graph_def_version() const { return graph_def_version_; }
313+
int graph_def_version() const { return graph_def_version_; }
314314

315315
// Helper routines for the OP_REQUIRES macros
316316
void CtxFailure(Status s);

tensorflow/stream_executor/device_description.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class DeviceDescription {
8282

8383
// Returns the limit on the number of simultaneously resident blocks
8484
// on a multiprocessor.
85-
const uint64 blocks_per_core_limit() const { return blocks_per_core_limit_; }
85+
uint64 blocks_per_core_limit() const { return blocks_per_core_limit_; }
8686

8787
// Returns the limit on the total number of threads that can be launched in a
8888
// single block; i.e. the limit on x * y * z dimensions of a ThreadDim.
@@ -141,7 +141,7 @@ class DeviceDescription {
141141
uint64 device_memory_size() const { return device_memory_size_; }
142142

143143
// Returns the device's core clock rate in GHz.
144-
const float clock_rate_ghz() const { return clock_rate_ghz_; }
144+
float clock_rate_ghz() const { return clock_rate_ghz_; }
145145

146146
// Returns whether ECC is enabled.
147147
bool ecc_enabled() const { return ecc_enabled_; }

tensorflow/stream_executor/kernel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ class KernelArgIterator {
302302
//
303303
// Returns a default-constructed KernelArg if there is no next argument.
304304
KernelArg next() {
305-
KernelArg result;
305+
KernelArg result = {};
306306
if (!has_next()) {
307307
return result;
308308
} else if ((shmem_indices_iter_ != shmem_indices_end_) &&

0 commit comments

Comments
 (0)