tf_agents.specs.tensor_spec.to_pbtxt_file

Saves a spec encoded as a struct_pb2.StructuredValue in a pbtxt file.