Graph optimization not exist in GPU?

Thanks! One last quick question: is it easy to locate which line of code in the tutorial applies the graph optimization?