← Questions

2D convolution forward pass in NumPy, with parameter counts

0
TeslaCodingLast asked Dec 2025

A coding interview question asked in Tesla's technical phone screen, last asked Dec 2025. It tests numpy, convolution and deep learning.

Implement the forward pass of a 2D convolution from scratch, with no deep-learning library and no built-in convolution. Before coding, answer how many parameters the layer has and what shape it outputs.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Tesla · Technical phone screen · Last asked Dec 202545 min · 10 to 20 minutes on your background, then one compact coding, debugging or design task in CoderPad that must run

What it tests

numpy · convolution · deep learning · vectorization

Your code and the AI tutor open when you unlock this question.