ivy.transpile()#

Ivy’s Transpiler converts a function, class, or module written in any framework into your framework of choice, preserving all the logic between frameworks.

Transpiler API#

ivy.transpile(object, source='torch', target='tensorflow', profiling=False)#

Converts a given object (class/function) from one framework to another.

Parameters:
  • object (Any) – The object (class/function) to be transpiled to a new framework.

  • source (Optional[str]) – The source framework we’re converting the object from.

  • target (Optional[str]) – The target framework we’re converting the object to.

  • profiling (bool) – Whether to use performance profiling.

Return type:

Union[MethodType, FunctionType, type]

Returns:

The transpiled object.