[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf_agents.utils.common.load_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#L1259-L1279) |\n\nLoads a data spec from a file. \n\n tf_agents.utils.common.load_spec(\n file_path\n )\n\n| **Note:** Types for Named tuple classes will not match. Users need to convert to these manually:\n\n# Convert from:\n# 'tensorflow.python.saved_model.nested_structure_coder.Trajectory'\n# to proper TrajectorySpec.\n# trajectory_spec = trajectory.Trajectory(\\*spec)\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------|------------------------------|\n| `file_path` | Path to the saved data spec. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A nested structure of TensorSpecs. ||\n\n\u003cbr /\u003e"]]