First things first. Your input
is not a tensor, but a symbolic tensor.
- So, what is symbolic tensor? - You can consider it as tensor without any value associated with it.
- Now, what is the use of symbolic tensor? - it actually helps you build a model framework so that it is ready to accept the input anytime later.
More can be found in this answer
Now, coming back to answer your question. You need to convert the symbolic tensor to a tensor by first feeding the network with the data. Once you have the tensor, then you can proceed to get the numpy array out of it.