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.