Free PTCA sample questions
Real questions from the PyTorch Certified Associate (PTCA) practice bank, with the correct answer and an explanation for each one. No junk, no filler.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 6 of 12 free sample questions.
True or False: Calling `model.eval()` automatically disables gradient computation during the forward pass, effectively acting as a substitute for `torch.no_grad()` during inference.
During the setup phase of a deep learning pipeline, an architect configures the model and optimizer. Which of the following sequences represents the correct best practice for initializing an optimizer in relation to moving the model to a target hardware device (e.g., GPU)?
A computer vision model requires blending a feature map tensor `A` with a per-channel bias tensor `B`. Tensor `A` has the shape `(16, 3, 256, 256)` representing (batch, channels, height, width). Tensor `B` has the shape `(3, 1, 1)`. When the operation `C = A + B` is executed, what will be the resulting shape of tensor `C` based on PyTorch broadcasting semantics?
To compute the gradients of the loss with respect to all tensors in the computation graph that have requires_grad=True, you must call the ________ method on the final loss tensor.
A data scientist observes that their model's training loss is behaving erratically, oscillating wildly and occasionally exploding to infinity, despite a very small learning rate. They review their core training loop: ```python for data, target in dataloader: output = model(data) loss = criterion(output, target) loss.backward() optimizer.step() ``` What critical omission in this training loop is causing the erratic loss behavior?
6 more free samples are waiting
Create a free account to unlock the whole PTCA sample bank, or get full access to all 150 practice questions in the simulator.