Skip to content

Tag: tensorflow

Select a column without “losing” a dimension

Suppose I execute the following code The shape of X[:,1] would be [100,]. That is, X[:,1].shape would yield [100,]. If I want to select the second column of X and want the resulting array to have shape [100,1], what should I do? I looked at tf.slice but I’m not sure if it’ helpful. Answer Maybe ju…

How do I install TensorFlow? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I have tried to install TensorFlow using pip install tensorflow but command prompt threw an e…