I'm trying to convert a python variable having str format into Tensorflow's Tensor with tf.string data type. Anyone having an idea how to?
Here's what I tried, but it expects data is already in Tensor format.
print(type(data)) # <type 'str'>
myTensor = tf.convert_to_tensor(data, dtype=tf.string) # ERROR!