torch_compile

keras_mml.utils.misc.coverage.torch_compile(model=None, **kwargs)[source]

Custom decorator similar to torch.compile(). However the compilation of the function will not be performed if the DISABLE_TORCH_COMPILE environment variable is set.

Parameters:
Returns:

Callable – Decorated model.