Save the date! Google I/O returns May 18-20 Register now

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.