cntk.misc.converter module

convert(root_func, filter, converter)[source]

Clones the graph underlying root_func and in the clone substitutes all Functions obtained by applying ‘filter’, with a new Function obtained by calling the specified ‘converter’

Parameters:
  • root_func – a root function of a graph to be cloned and converted
  • filter – a lambda for filtering out the Functions to be converted
  • converter – a lambda for obtaining the substitute for each of the Functions to be converted
Returns:

Cloned and converted Function (graph)