Reputation: 297
I'm trying to make a simple neural network and I have a simple question: How do I convert a tensor which is rank 1 to a tensor which is rank 2?
Upvotes: 4
Views: 5479
Reputation: 2174
You might be looking for tf.expand_dims()
https://www.tensorflow.org/api_docs/python/tf/expand_dims
Upvotes: 5