【问题标题】:Compare tf.string and python string比较 tf.string 和 python 字符串
【发布时间】: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


【解决方案1】:

很遗憾,目前您还不能。请在问题部分的 TF github 上提问。

【讨论】:

    猜你喜欢
    • 2015-03-18
    • 2016-08-19
    • 1970-01-01
    • 2022-01-10
    • 1970-01-01
    • 2013-11-26
    • 2022-01-16
    • 2017-08-13
    • 2015-02-24
    相关资源
    最近更新 更多