user288609
user288609

Reputation: 13025

regarding converting 1D to 2D in tensorflow

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

Answers (1)

Aaron
Aaron

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

Related Questions