tf_agents.specs.from_spec
Stay organized with collections
Save and categorize content based on your preferences.
Maps the given spec into corresponding TensorSpecs keeping bounds.
tf_agents.specs.from_spec(
spec
)
Used in the notebooks
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf_agents.specs.from_spec\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/specs/tensor_spec.py#L66-L83) |\n\nMaps the given spec into corresponding TensorSpecs keeping bounds.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tf_agents.specs.tensor_spec.from_spec`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/specs/from_spec)\n\n\u003cbr /\u003e\n\n tf_agents.specs.from_spec(\n spec\n )\n\n### Used in the notebooks\n\n| Used in the tutorials |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| - [Train a Deep Q Network with TF-Agents](https://www.tensorflow.org/agents/tutorials/1_dqn_tutorial) - [REINFORCE agent](https://www.tensorflow.org/agents/tutorials/6_reinforce_tutorial) |"]]