I have created a tensor:
tensorX= tf.compat.v1.get_variable("tensorX", dtype=tf.float32, initializer = tf.compat.v1.constant(100.0)) #.....and when I read this tensor from the graph i.e. graph = tf.compat.v1.get_default_graph() tensorXX = graph.get_tensor_by_name("tensorX:0") print(tensorXX) #Output tensorX:0' shape=() dtype=resource
I have few related questions:
- What is dtype=resource in tensorflow(version 2.1)?
- While reading this tensor_by_name, why it's returning as "resource"?
- Due to its "dtype=resource", Im not able to assign some value to it. How to read this tensor where "dtype=tf.float32 or how to convert "dtype=resource" back to "dtype=tf.float32"?
Thanks in Advance.