フリー問題

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

問題文

A DataLoader is created with shuffle enabled. What does the loader do internally to honor that setting for a map-style dataset?

選択肢

  1. It relies on the dataset to return samples in random order.
  2. It reads the whole dataset and then permutes the batches.
  3. It constructs a sampler that produces indices in random order, based on the value of the shuffle argument.
  4. It rewrites the dataset in memory so that the samples are stored in a permuted order, which is why the setting can only be used with datasets small enough to fit entirely in memory.

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

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