Skip to main content

CompiledModule

A :class:CompiledFunction over a module: the module is called as module(*args, **kwargs) and stays reachable as :attr:module.

__init__​

__init__(self, module: 'Callable[..., Any]', *, signature: 'Sequence[TensorSpec]' = (), dynamic: 'bool | None' = None, fullgraph: 'bool' = False, optimize: 'bool | None' = None, specialize: 'bool | None' = None, place: 'PlaceLike' = None, dynamic_axes: 'DynamicAxes | None' = None, output_names: 'Sequence[str] | None' = None, graph_name: 'str | None' = None) -> 'None'

Initialize self. See help(type(self)) for accurate signature.