Reputation: 13025
Given a one dimensional data, how to re-shape it to 2D matrix so that I can leverage the existing 2D convolution in tensorflow?
Upvotes: 2
Views: 4571
Reputation: 63
I have to assume that you are talking about an array. If that is correct then you should be able to convert it using reshape.
from the tensorflow site https://www.tensorflow.org/api_docs/python/tf/reshape
Upvotes: 1