Your function representation is exactly what I explained.
One point to understand, why this could be very inefficient?
Inefficient in a sense of more time to write code or execution time will be slow because of not using
some of the internal optimizations in Autograd?