[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf_agents.utils.common.save_spec\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/utils/common.py#L1238-L1256) |\n\nSaves the given spec nest as a StructProto. \n\n tf_agents.utils.common.save_spec(\n spec, file_path\n )\n\n| **Note:** Currently this will convert BoundedTensorSpecs into regular TensorSpecs.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------|------------------------------------|\n| `spec` | A nested structure of TensorSpecs. |\n| `file_path` | Path to save the encoded spec to. |\n\n\u003cbr /\u003e"]]