This is in profile_memory.
In that case, the profile information are useless.
The setter isn't implemented and will raise an error.
Also fix the printing.
This fix a crash in the new memory profiler.
We print a message to use the new profiler in that case. This repair ProfileMode
Change the mechanism to track in variable_shape instead of outputs_shapes.
It was the old memory profiler.