比较 tf.string 和 python 字符串
Compare tf.string and python string
如何将 Tensorflow 字符串张量与 python 字符串类型进行比较。
我试过这样的东西
if(tf.constant("neg",tf.string) in key):
a=True
这里的key,是一个tf.string。我想看看 'neg' 是否在关键张量中。
遗憾的是,目前您不能。请在问题部分的 TF github 上提问。
如何将 Tensorflow 字符串张量与 python 字符串类型进行比较。 我试过这样的东西
if(tf.constant("neg",tf.string) in key):
a=True
这里的key,是一个tf.string。我想看看 'neg' 是否在关键张量中。
遗憾的是,目前您不能。请在问题部分的 TF github 上提问。