# tf_agents.specs.tensor_spec.from_proto

<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/specs/tensor_spec.py#L606-L608) |

Decodes a struct_pb2.StructuredValue proto into a nested spec.

    tf_agents.specs.tensor_spec.from_proto(
        spec_proto
    )