Previous question · 657
Partition Labels
mediumAlgorithms
Next question · 659
Batch Retry Queue
mediumData Engineering
Random coding question

658. Padding and stride effects

easy
GeneralGeneral
senior
Function contract
Inputs
h
int
w
int
k_h
int
k_w
int
stride
int
padding
int
Returns
value
np.ndarray

Examples

Input
{
  "h": 5,
  "w": 5,
  "k_h": 3,
  "k_w": 3,
  "stride": 2,
  "padding": 1
}
Output
[
  3,
  3
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
convolution
output-shape
stride-padding
floor-division

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
42 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands