Open himat opened 7 years ago
Well, as explained in the comment above it I assume it is so that the Graph is correctly generated (you can try commenting that line and use Tensorboard to see if the Graph changes).
Can you explain why the graph would change though? Shouldn't an identity not have aany effect?
Why is tf.identity necessary in some cases in your code, such as here https://github.com/affinelayer/pix2pix-tensorflow/blob/master/pix2pix.py#L119