フリー問題

PyTorch Certified Associate のフリー問題 15 / 20 問目

問題文

A team enables automatic mixed precision on a CUDA GPU. Which pair of components does the documentation present as the typical combination for a training loop?

選択肢

  1. A gradient scaler alone, wrapped around the forward pass.
  2. An autocast context around the forward pass and the loss, together with a gradient scaler around the backward pass and the update.
  3. An autocast context around the whole training loop including the optimizer step, which is enough on its own because the scaler is only needed on hardware without native support for reduced precision arithmetic.
  4. A dtype argument passed to the optimizer.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。