0

How can I compare a Tensorflow string tensor to a python string type. I tried something like this

if(tf.constant("neg",tf.string) in key):
 a=True

key here, is a tf.string. I want to see if 'neg' is in the key tensor.

1
  • Looks like we don't have a TensorFlow op that does this, maybe file feature request for "regex_match"? Commented Mar 11, 2016 at 18:30

1 Answer 1

2

Unfortunately, currently you cannot. Please ask this on TF github in issues section.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.