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.
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.