File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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_; }
Original file line number Diff line number Diff 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_) &&
You can’t perform that action at this time.
0 commit comments