# tf_agents.specs.tensor_spec.from_packed_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#L611-L615) |

Decodes a packed Any proto containing the structured value for the spec.

    tf_agents.specs.tensor_spec.from_packed_proto(
        spec_packed_proto
    )