run now in the txt2img example you have one big graph.withNoGrad and the for loop is inside it.
rather than that, if i have one graph.withNoGrad for text model stuff , and one graph.withNoGrad for each iteration, ie. if i have graph.withNoGrad inside the for loop. Than it increases the memory usage from 3GB to 4.2GB/
what could be the reason? all the .run etc are still inside graph.withNoGrad , just different graph.withNoGrad
run now in the txt2img example you have one big graph.withNoGrad and the for loop is inside it.
rather than that, if i have one graph.withNoGrad for text model stuff , and one graph.withNoGrad for each iteration, ie. if i have graph.withNoGrad inside the for loop. Than it increases the memory usage from 3GB to 4.2GB/
what could be the reason? all the .run etc are still inside graph.withNoGrad , just different graph.withNoGrad