Registration is open for TensorFlow Dev Summit 2020 Learn more


View source on GitHub

Converts a config object to a swagger API dict.


This utility method recursively converts swagger code generated configs into a valid swagger dictionary. This method is trying to workaround a bug ( from swagger generated code


  • config: The config object. It can be one of List, Dict or a Swagger code generated object, which has a attribute_map attribute.


The original object with all Swagger generated object replaced with dictionary object.