Hi,
In pytorch, the graph is only defined by the code. So you need to run the code to get the new output. The whole framework is built such that reconstructing the graph is cheap enough that you can do it every time you need to compute an output and you won’t see the difference  performance wise.