• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in PyTorch by
Q:

For x = torch.Tensor([1, 2, 3, 4]), after x = torch.unsqueeze(x, 0) x will be of the shape _______.

Select the best option from below

a) 1 x 4

b) 1 x 1 x 4

c) 2 x 2

d) 1 x 4 x 1

1 Answer

0 votes
by
a) 1 x 4

Related questions

0 votes
asked Oct 22, 2021 in Artificial Intelligence by DavidAnderson
0 votes
asked May 21, 2019 in Mathematics by sheetalkhandelwal
...