Processing time gets longer and longer after each iteration (TensorFlow)

You call that code in each iteration, so each iteration you add these operations to the graph. You don’t want to do that. You want to build the graph at the start and in the training loop only execute it. Also, why do you need to convert to ndimage again afterwards, instead of putting things into your TF graph once and just use tensors all the way through?

Leave a Comment