tf_agents.utils.common.save_spec

Saves the given spec nest as a StructProto.

spec A nested structure of TensorSpecs.
file_path Path to save the encoded spec to.