問題文
A developer wraps their model as compiled = torch.compile(model). What does the call return, and what happens on the first call to it?
選択肢
- 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.
- It returns nothing and modifies the model in place.
- 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.
- It returns a callable that behaves like the model, and the first call triggers the tracing and compilation work.