Hello guys, I'm trying to print the values of an LSTM forget gate in a text file:
When I do:
f = tf.Print(f, [f], message="This is f: ", summarize=120)
... I receive by console the result in numbers
However when I try to store this data using:
with open("test.txt", "a") as myfile:
myfile.write(str(tf.Print(f, [f], message="This is f: ", summarize=120)))
In the text file I just receive per processed data,
Tensor("RNN/LayerNormalizedLSTMCell_5/Print_1:0", shape=(?, 10), dtype=float32)
Could you tell me please how solve this?
Thanks