View source on GitHub |
Encodes a nested spec into a struct_pb2.StructuredValue proto.
tf_agents.specs.tensor_spec.to_proto(
spec
)
Args | |
---|---|
spec
|
Nested list/tuple or dict of TensorSpecs, describing the shape of the non-batched Tensors. |
Returns | |
---|---|
A struct_pb2.StructuredValue proto.
|