← All sections

PyTorch

0 / 64 solved · Easy 32 · Medium 26 · Hard 6

#TitleDifficulty
1Null VectorEasy
2Range Vector 10–49Easy
3Reverse a VectorEasy
43×3 Matrix 0–8Easy
5Indices of Non-Zero ElementsEasy
6Identity MatrixEasy
7Seeded Random TensorEasy
8Min and MaxEasy
9Mean ValueEasy
101 on Border, 0 InsideEasy
11Add a Zero BorderEasy
12Checkerboard PatternEasy
13Matrix ProductEasy
14Negate Elements 3–8Easy
15Round Away From ZeroMedium
16Common ValuesMedium
17Sort a VectorEasy
18Are Two Tensors Equal?Easy
19Cartesian to PolarMedium
20Replace Max with 0Medium
21Closest Value to a ScalarMedium
22Pairwise DistancesMedium
23Subtract Row MeansMedium
24Sort Rows by nth ColumnMedium
25Diagonal of a Matrix ProductMedium
26Interleave 3 ZerosMedium
27Multiply (5,5,3) by (5,5)Medium
28Swap Two RowsMedium
29Sliding Window AverageHard
30n Largest ValuesMedium
31Most Frequent ValueMedium
32Cube Each ElementEasy
33Unique RowsMedium
34Outer Product with einsumMedium
35Matrix RankHard
36Sum Over Last Two AxesMedium
37Block-Sum (k×k blocks)Hard
38One-Hot EncodingMedium
39SoftmaxMedium
40ReLUEasy
41Autograd: Compute a GradientHard
42Transpose a MatrixEasy
43Flatten a TensorEasy
44Concatenate TensorsEasy
45Clamp ValuesEasy
46Squeeze Singleton DimensionsEasy
47Unsqueeze at a Given DimensionEasy
48Permute Image Dimensions (HWC to CHW)Medium
49Stack Tensors Along a New AxisEasy
50Positions of the Min and MaxEasy
51Manual Linear Layer Forward PassMedium
52Mean Absolute ErrorEasy
53Mean Squared ErrorEasy
54Binary Cross-Entropy from LogitsMedium
55Cross-Entropy Loss (Multi-Class)Medium
56Manual SGD Parameter UpdateEasy
57Gradient of MSE Loss w.r.t. Weight and BiasHard
58Manual Sigmoid ImplementationEasy
59Logits to Predicted Binary LabelsEasy
60Predicted Class from Batched LogitsMedium
61Classification AccuracyEasy
62Precision, Recall, and F1 ScoreMedium
63Confusion MatrixMedium
64Two-Layer MLP Forward PassHard