---
title: thunder.common.CompileData
description: A class holding data about the compiled object.
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.common.CompileData
---
# thunder.common.CompileData {#thunder-common-compiledata}

### `class thunder.common.CompileData(*, fn, langctx=None, executors_list=None, cache_option=None, sharp_edges=None, using_jit=False, only_execute_prims=False, disable_preprocessing=False, disable_torch_autograd_support=False, debug_log=None, compile_options={}, get_computation_and_inputs=None, executor_lookasides=None, debug_options=None)` {#thunder.common.CompileData}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/common.py#L180-L285)

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)")

A class holding data about the compiled object.

Data include statistics about how it’s been called.

Parameters:

*   **fn** ([_Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")) –
    
*   **langctx** (_None_ _|_ _thunder.core.langctxs.LanguageContext_) –
    
*   **executors\_list** (_None_ _|_ [_tuple_](https://docs.python.org/3/builtins/stdtypes.html#tuple "(in Python v3.15)")_\[_[_thunder.extend.Executor_](/docs/thunder/extend/thunder.extend.Executor#thunder.extend.Executor "thunder.extend.Executor")_,_ _...__\]_) –
    
*   **cache\_option** (_None_ _|_ [_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)") _|_ [_thunder.core.options.CACHE\_OPTIONS_](/docs/thunder/0.2.6/api-reference/generated/thunder.common.CACHE_OPTIONS.md#thunder.common.CACHE_OPTIONS "thunder.core.options.CACHE_OPTIONS")) –
    
*   **sharp\_edges** (_None_ _|_ _thunder.core.options.SHARP\_EDGES\_OPTIONS_ _|_ [_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")) –
    
*   **using\_jit** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **only\_execute\_prims** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **disable\_preprocessing** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **disable\_torch\_autograd\_support** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **debug\_log** (_None_ _|_ _\_io.StringIO_) –
    
*   **compile\_options** ([_dict_](https://docs.python.org/3/builtins/stdtypes.html#dict "(in Python v3.15)")_\[_[_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")_,_ [_Any_](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.15)")_\]_) –
    
*   **get\_computation\_and\_inputs** ([_collections.abc.Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)") _|_ _None_) –
    
*   **executor\_lookasides** ([_dict_](https://docs.python.org/3/builtins/stdtypes.html#dict "(in Python v3.15)")_\[_[_collections.abc.Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")_,_ [_collections.abc.Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")_\]_ _|_ _None_) –
    
*   **debug\_options** ([_thunder.core.options.DebugOptions_](/docs/thunder/generated/thunder.DebugOptions#thunder.DebugOptions "thunder.core.options.DebugOptions") _|_ _None_) –
    

#### `__init__(*, fn, langctx=None, executors_list=None, cache_option=None, sharp_edges=None, using_jit=False, only_execute_prims=False, disable_preprocessing=False, disable_torch_autograd_support=False, debug_log=None, compile_options={}, get_computation_and_inputs=None, executor_lookasides=None, debug_options=None)` {#thunder.common.CompileData.__init__}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/common.py#L186-L285)

Parameters:

*   **fn** ([_Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")) –
    
*   **langctx** ([_Union_](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.15)")_\[__None__,_ _LanguageContext__\]_) –
    
*   **executors\_list** ([_Union_](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.15)")_\[__None__,_ [_tuple_](https://docs.python.org/3/builtins/stdtypes.html#tuple "(in Python v3.15)")_\[_[_thunder.extend.Executor_](/docs/thunder/extend/thunder.extend.Executor#thunder.extend.Executor "thunder.extend.Executor")_,_ _...__\]__\]_) –
    
*   **cache\_option** ([_Union_](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.15)")_\[__None__,_ [_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")_,_ [_CACHE\_OPTIONS_](/docs/thunder/0.2.6/api-reference/generated/thunder.common.CACHE_OPTIONS.md#thunder.common.CACHE_OPTIONS "thunder.core.options.CACHE_OPTIONS")_\]_) –
    
*   **sharp\_edges** ([_Union_](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.15)")_\[__None__,_ _SHARP\_EDGES\_OPTIONS__,_ [_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")_\]_) –
    
*   **using\_jit** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **only\_execute\_prims** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **disable\_preprocessing** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **disable\_torch\_autograd\_support** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **debug\_log** ([_Union_](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.15)")_\[__None__,_ _StringIO__\]_) –
    
*   **compile\_options** ([_dict_](https://docs.python.org/3/builtins/stdtypes.html#dict "(in Python v3.15)")_\[_[_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")_,_ [_Any_](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.15)")_\]_) –
    
*   **get\_computation\_and\_inputs** ([_Optional_](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.15)")_\[_[_Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")_\]_) –
    
*   **executor\_lookasides** ([_Optional_](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.15)")_\[_[_dict_](https://docs.python.org/3/builtins/stdtypes.html#dict "(in Python v3.15)")_\[_[_collections.abc.Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")_,_ [_collections.abc.Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")_\]__\]_) –
    
*   **debug\_options** ([_Optional_](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.15)")_\[_[_DebugOptions_](/docs/thunder/generated/thunder.DebugOptions#thunder.DebugOptions "thunder.core.options.DebugOptions")_\]_) –
    

Methods

- [`__init__(*, fn[, langctx, executors_list, ...])`](#thunder.common.CompileData.__init__)

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
