フリー問題

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

問題文

A developer wraps their model as compiled = torch.compile(model). What does the call return, and what happens on the first call to it?

選択肢

  1. It compiles immediately at the time of the call, before any input is seen, so the first iteration and the ones after it run at full speed.
  2. It returns nothing and modifies the model in place.
  3. It returns a new model object whose weights have been converted into a compiled representation, so the original model can be discarded once the compiled version has been produced.
  4. It returns a callable that behaves like the model, and the first call triggers the tracing and compilation work.

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

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