@test_util.disable_tfrt('GetHostSize() is not expected to be called with string type. b/156761465')
def testZeroSizeStringAssign(self):
    with self.cached_session() as sess:
        array = variables.VariableV1(initial_value=array_ops.zeros((0,), dtype=dtypes.string), name='foo', trainable=False, collections=[ops.GraphKeys.LOCAL_VARIABLES])
        self.evaluate(variables.local_variables_initializer())
        old_value = array.value()
        copy_op = array.assign(old_value)
        self.assertEqual([], list(self.evaluate(copy_op)))
@test_util.disable_tfrt('GetHostSize() is not expected to be called with string type. b/156761465')
def testZeroSizeStringAssign(self):
    with self.cached_session() as sess:
        array = variables.VariableV1(initial_value=array_ops.zeros((0,), dtype=dtypes.string), name='foo', trainable=False, collections=[ops.GraphKeys.LOCAL_VARIABLES])
        self.evaluate(variables.local_variables_initializer())
        old_value = array.value()
        copy_op = array.assign(old_value)
        self.assertEqual([], list(self.evaluate(copy_op)))