Просто используйте list(tensor.numpy())
. Пример:
import tensorflow as tf
n_strings = 8
t = tf.convert_to_tensor(['example string ' + str(i) for i in range(n_strings)])
t
# <tf.Tensor: shape=(8,), dtype=string, numpy=
# array([b'example string 0', b'example string 1', b'example string 2',
# b'example string 3', b'example string 4', b'example string 5',
# b'example string 6', b'example string 7'], dtype=object)>
list(t.numpy().astype('str'))
# ['example string 0',
# 'example string 1',
# 'example string 2',
# 'example string 3',
# 'example string 4',
# 'example string 5',
# 'example string 6',
# 'example string 7']