warp.utils.create_warp_function#

warp.utils.create_warp_function(func)[source]#

Create a Warp function from a Python function.

Parameters:

func (Callable) – A Python function to be converted to a Warp function.

Returns:

A tuple containing the created Warp function and the module it belongs to.

Return type:

tuple[Function, Module]