Google I/O is a wrap! Catch up on TensorFlow sessions View sessions


View source on GitHub

Transform an optional op only if it is inside the subgraph.

This handler is typically use to handle original op: it is fine to keep them if they are inside the subgraph, otherwise they are just ignored.

info Transform._TmpInfo instance.
op the optional op to transform (or ignore).
keep_if_possible re-attach to the original op if possible, that is, if the source graph and the destination graph are the same.

The transformed op or None.