Debangshu Paul
Debangshu Paul

Reputation: 344

How do you find the shape of a tensor in tensorflow js?

I am trying to get the shape of a tensor in TensorFlow js but am unable to do so. Any help would be appreciated

Upvotes: 2

Views: 631

Answers (1)

Ziur Olpa
Ziur Olpa

Reputation: 2102

Did you try?:

tf.shape

Where tf is your tensor, you can read more about this function at the tensorflow documentation

Upvotes: 2

Related Questions