VGG's cost is dominated by its convolutions. Counting multiply-accumulates per layer tells you where the compute goes, which matters when comparing it with later architectures.
Implement conv_macs(h, w, c_in, c_out, k), the multiply-accumulate count of one convolution.
Multiply the output area, input channels, output channels and kernel area.
No results yet
Run your code to check it against the examples, or submit to run every test.