Swish is meant to behave like ReLU where ReLU works well, while staying smooth elsewhere. This question measures how far apart the two curves are, which is the quantity the paper's sharpness parameter controls.
Implement swish_relu_gap(x, beta), returning the largest absolute difference between swish(x, beta) and relu(x) over the input values.
Compute both functions over the array, take the absolute difference, then the maximum.
No results yet
Run your code to check it against the examples, or submit to run every test.