【发布时间】:2020-05-13 17:14:44
【问题描述】:
我正在尝试创建一个 Transformer 模型,我有 2 个np.arrays,都有字符串,我用它们来创建一个元组列表
元组的格式是:
class 'tuple' (tf.Tensor: shape=(), dtype=string, numpy=b'abc', tf.Tensor: shape=(), dtype=string, numpy=b'xyz')
我想将这些元组组合成tensorflow.python.data.ops.dataset_ops._OptionsDataset,我该怎么做?
或者有没有其他方法可以做到?
新手,感谢您的帮助!
【问题讨论】:
标签: python numpy tensorflow dataset