Worked: A dense layer with i inputs and o outputs performs i*o multiply-accumulates (MACs) — every output is a dot product over all inputs. For a 16->32 layer that is 16*32 = 512 MACs; each MAC is one multiply and one add. We price a multiply at E_MUL = 3.7 pJ and an add at E_ADD = 0.9 pJ (Horowitz @45nm). So layer-1 arithmetic energy = 512*(3.7+0.9).
Your turn: Add the second layer, 32->4, which is 32*4 = 128 MACs, for a total of 640 MACs across the policy. Compute the total multiply energy mul_e = macs*E_MUL and total add energy add_e = macs*E_ADD.
Independent: Fill the gap: express the fraction of arithmetic energy spent on multiplies as arith_share = mul_e/(mul_e+add_e). Confirm it equals 3.7/4.6 ~= 0.804, then check the punchline in the code: one DRAM read (640 pJ) is greater than add_e (all 640 adds = 576 pJ). The multiplier and the memory bus, not the network's depth, are where the joules go.