ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf_agents.specs.tensor_spec.to_proto

Encodes a nested spec into a struct_pb2.StructuredValue proto.

spec Nested list/tuple or dict of TensorSpecs, describing the shape of the non-batched Tensors.

A struct_pb2.StructuredValue proto.