message: Remove PersistentTensor from assign_op.h
diff: @@ -108,19 +108,18 @@ class AssignOp : public OpKernel {
  return;
  }
  - // Otherwise, create a new persistent tensor whose shape matches the
  + // Otherwise, create a new tensor whose shape matches the
  // right hand side, hand off to lhs and copy the rhs into it.
  - PersistentTensor copy;
  - Tensor* copyTensor = nullptr;
  - OP_REQUIRES_OK(
  - context, context->allocate_persistent(old_lhs.dtype(), rhs.shape(),
  - &copy, &copyTensor, attr));
  + Tensor copy_tensor;
  + OP_REQUIRES_OK(context,
  + context->allocate_temp(old_lhs.dtype(), rhs.shape(),
  + &copy_tensor, attr));
  // We track memory of variables in variable ops instead of in this
  // assign op.
  context->clear_recorded_memory();
  - context->replace_ref_input(0, *copyTensor, /* lock_held */ true);
  + context->replace_ref_input(0, copy_tensor, /* lock_held */ true);
  if (use_exclusive_lock_) {
  - Copy(context, copyTensor, rhs);
  + Copy(context, &copy_tensor, rhs);
  return;
  }
  }
  