Remove unused local variable.

PiperOrigin-RevId: 357019308
Change-Id: I0dcb5a1868725e1c894589a14469bc9747abdfcc
This commit is contained in:
Guangda Lai 2021-02-11 11:24:38 -08:00 committed by TensorFlower Gardener
parent 84377fe862
commit bcf3fe2a6a

View File

@ -221,7 +221,6 @@ VarHandleOp::VarHandleOp(OpKernelConstruction* context) : OpKernel(context) {
OP_REQUIRES_OK(context, context->GetAttr("shared_name", &name_));
OP_REQUIRES_OK(context, context->GetAttr("dtype", &dtype_and_shape_.dtype));
PartialTensorShape shape;
OP_REQUIRES_OK(context, context->GetAttr("shape", &dtype_and_shape_.shape));
is_anonymous_ = name_ == ResourceHandle::ANONYMOUS_NAME;