Clean up only.

PiperOrigin-RevId: 275091878
Change-Id: I0fe024f16bdc69ea63cc4cec284654d3c87e2485
This commit is contained in:
A. Unique TensorFlower 2019-10-16 12:43:40 -07:00 committed by TensorFlower Gardener
parent 265126ca30
commit e11e6fd07b
2 changed files with 4 additions and 2 deletions

View File

@ -22,6 +22,7 @@ limitations under the License.
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/selective_registration.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/platform/macros.h"
// BitcastOp implements a bitcast kernel, creating an output tensor that shares
// the same data buffer as the input but with a different shape and/or data
@ -163,7 +164,7 @@ void RegisterBitcastOpKernel() {
// A dummy static variable initialized by a lambda whose side-effect is to
// register the bitcast kernel.
static bool IsBitcastOpKernelRegistered = []() {
TF_ATTRIBUTE_UNUSED static bool IsBitcastOpKernelRegistered = []() {
if (SHOULD_REGISTER_OP_KERNEL("BitcastOp")) {
RegisterBitcastOpKernel();
}

View File

@ -19,6 +19,7 @@ limitations under the License.
#include "tensorflow/c/ops.h"
#include "tensorflow/core/framework/selective_registration.h"
#include "tensorflow/core/platform/logging.h"
#include "tensorflow/core/platform/macros.h"
static void ComputeNewShape(TF_ShapeInferenceContext* ctx,
TF_ShapeHandle* shape, size_t input_type_size,
@ -127,7 +128,7 @@ void RegisterBitcastOp() {
TF_DeleteStatus(status);
}
static bool IsBitcastOpRegistered = []() {
TF_ATTRIBUTE_UNUSED static bool IsBitcastOpRegistered = []() {
if (SHOULD_REGISTER_OP("Bitcast")) {
RegisterBitcastOp();
}