1

I have a tensor - tf.Tensor(b'ISIC_2637011', shape=(), dtype=string)

How do I extract value from here?

1 Answer 1

1

If you want to get the value of tf.string tensor you can use :

s = tf.constant("You're")

st_value = ''.join ([chr(char) for char in tf.strings.unicode_decode(s,
                      input_encoding='UTF-8').numpy()])
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.