Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
PyTorch Interview Questions and Answers
Home
Questions
PyTorch
0
votes
On max pooling image of shape 20 x 20 using filter 4 x 4 and stride = 2, what will be the shape of the output?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
pooling-image
0
votes
While operating on Tensors a function name followed by underscore means ___________.
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
tensor-function
0
votes
Which of the following function is used to move the Tensors from CPU to GPU?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
tensor
cpu
gpu
0
votes
If the shape of the Tensor is 2 x 1 x 3 x 1, performing torch.sqeeze() will output Tensor of shape _______.
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
tensor
shape
0
votes
Computing softmax activation can be skipped when using nn.CrossEntropyLoss.
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
computing-softmax
0
votes
The model.eval() is used to _________.
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
model
eval
0
votes
Which of the following functions is used to reshape the Tensors in PyTorch?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
pytorch-tensors
0
votes
Pre-trained models in PyTorch can be downloaded from which of the following modules?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
pytorch
0
votes
If the model has 10 features, and two hidden layers of 20 nodes and 30 nodes, the network is defined as ___________.
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
model-features
0
votes
Which of the following is used to load the weights into the model from the file?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
model-load
0
votes
For an optimizer defined, which of the following function is used to update the parameters passed to the optimizer?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
optimizer
parameters
0
votes
Which of the following function is used to stop tracking gradients on Tensor?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
tracking-gradients
0
votes
Which of the following function is used to covert NumPy array to Tensor?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
numpy-array
0
votes
Which of the following functions is used to initialize Tensors in PyTorch randomly?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
tensor-pytorch
0
votes
Which of the following is used to load dataset in batches?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
dataset-batches
0
votes
Which of the following functions is used to move the Tensors from CPU to GPU?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
cpu-to-gpu
0
votes
Which of the following constructor is used as an FC layer to the network?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
fc-layer
0
votes
Which of the following is used to convert NumPy array to Tensor?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
numpy-array
0
votes
Which of the following constructor is used to define the layers sequentially?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
constructor-layer
0
votes
The network defined using nn.Module() must have a method named forward().
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
network-model
0
votes
For x = torch.Tensor([1, 2, 3, 4]), after x = torch.unsqueeze(x, 0) x will be of the shape _______.
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
torch-tensor
0
votes
PyTorch requires the graph to be defined before running the model.
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
pytorch-graph
0
votes
Which of the following defines the convolution layer with a 3 input channel, four out channels and a 3 x 3 filter?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
convolution-layer
0
votes
Which of the following function is used to compute the gradients on a loss function?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
gradients
0
votes
Which of the following is the base class for all the neural networks in PyTorch?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
pytorch-networks
0
votes
Which of the following functions is used to save the model parameters to a file?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
model-parameters
0
votes
Once you train model weights, bias can be accessed using ____________.
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
train-model
0
votes
While defining the Tensor, which of the following parameters is used to track the gradients on Tensor?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
tensor
gradient
0
votes
Which of the following is used to view the shape of the Tensor?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
tensor-shape
0
votes
Which of the following function is used to save the model parameters to a file?
answered
Aug 7, 2021
in
PyTorch
by
sharadyadav1986
model-parameters
To see more, click for all the
questions in this category
.
...