PyTorch 实现与追问

题集来源:Alireza Dirafzoon(alirezadir)收录项目:AIMLInterviews查看原题集

题目来源
Devinterview 其中第 85—146 题的题目索引来自 Devinterview,答案由 AIMLInterviews 重新撰写;原文的 50 题补充部分在此收录为 62 道,含拆分追问。

题目目录

156 道原题
  1. Pad variable-length tensors and create a mask.

    原题
  2. Gather one class score per example from [B, C].

    原题
  3. Advanced indexing versus gather versus index_select?

    原题
  4. Diagnose CPU targets with GPU predictions.

    原题
  5. Explain contiguous tensors and .contiguous().

    原题
  6. Find the squeeze() batch-size-one bug.

    原题
  7. How do in-place operations affect autograd?

    原题
  8. Compare detach(), clone(), and torch.no_grad().

    原题
  9. Why can .item() slow a GPU loop?

    原题
  10. Implement fit, transform, and inverse_transform standardization.

    原题