Exercise 1 in 5.1.6 (chapter_deep-learning-computation, model-construction)

It looks like this exercise predates some code updates. The asscalar method is not used in the FixedHiddenMLP class, though it is mentioned in a code comment. It looks like the sum method already returns a scalar value, making asscalar irrelevant.