# tf.contrib.graph_editor.assign_renamed_collections_handler

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/graph_editor/transform.py#L85-L105) |

Add the transformed elem to the (renamed) collections of elem.

    tf.contrib.graph_editor.assign_renamed_collections_handler(
        info, elem, elem_
    )

A collection is renamed only if is not a known key, as described in
[`tf.compat.v1.GraphKeys`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/GraphKeys).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `info` | Transform._TmpInfo instance. |
| `elem` | the original element ([`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor) or [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation)) |
| `elem_` | the transformed element |

<br />