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.
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.