# tf_agents.policies.policy_saver.rename_spec_with_nest_paths

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/policies/policy_saver.py#L52-L57) |

    tf_agents.policies.policy_saver.rename_spec_with_nest_paths(
        spec
    )