tf_agents.specs.tensor_spec.to_proto

View source on GitHub

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.