【发布时间】:2016-03-11 17:54:44
【问题描述】:
如何将 Tensorflow 字符串张量与 python 字符串类型进行比较。 我试过这样的东西
if(tf.constant("neg",tf.string) in key):
a=True
这里的key,是一个tf.string。我想看看 'neg' 是否在关键张量中。
【问题讨论】:
-
看起来我们没有执行此操作的 TensorFlow 操作,可能是“regex_match”的文件功能请求?
标签: python machine-learning tensorflow