PyTorch 实现与追问
- 题目来源
- Devinterview 其中第 85—146 题的题目索引来自 Devinterview,答案由 AIMLInterviews 重新撰写;原文的 50 题补充部分在此收录为 62 道,含拆分追问。
What is wrong with mutable default arguments?
原题Explain shallow versus deep copies with an ML configuration.
原题Design errors for an invalid preprocessing shape or dtype.
原题Accept either NumPy arrays or PyTorch tensors without unclear behavior.
原题Compute the masked mean of [B, T, D] using a [B, T] mask.
原题Compute pairwise cosine similarity for [N, D] and [M, D].
原题Determine whether the true label is in the top-k predictions.
原题Implement one-hot encoding without F.one_hot.
原题Create label-smoothed targets.
原题Compute a batched confusion matrix without per-example loops.
原题
暂无题目