Supposing I have a tensor named
encoding which is of the shape
(1,32) Now I would like to find out the size of the tensor in bytes not the shape of it. So basically I want to know how much memory it takes.
I found this StackOverflow question which does this exact thing but in TensorFlow 1. So how can I accomplish the same?? Here is the link ===> https://stackoverflow.com/questions/36966316/how-to-get-the-dimensions-of-a-tensor-in-tensorflow-at-graph-construction-time
The SO question uses the
Tensorflow.contrib modulewhich (sadly) has been removed. So anyone know a way?