---
title: thunder.torch.torchsymbol
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.torch.torchsymbol
---
# thunder.torch.torchsymbol {#thunder-torch-torchsymbol}

### `class thunder.torch.torchsymbol(*torchfns, is_method=False, method_name=None, is_property=False, id=None, is_prim=False, tags=None, out_of_place=None, allow_tensor_subclass_proxy=False)` {#thunder.torch.torchsymbol}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/torch/__init__.py#L135-L237)

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

Parameters:

*   **is\_method** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **method\_name** (_None_ _|_ [_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")) –
    
*   **is\_property** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **id** ([_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)") _|_ _None_) –
    
*   **is\_prim** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **tags** (_None_ _|_ [_list_](https://docs.python.org/3/builtins/stdtypes.html#list "(in Python v3.15)")_\[__Any__\]_) –
    
*   **out\_of\_place** ([_Symbol_](/docs/thunder/core/generated/thunder.core.symbol.Symbol#thunder.core.symbol.Symbol "thunder.core.symbol.Symbol") _|_ _None_) –
    
*   **allow\_tensor\_subclass\_proxy** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    

#### `__init__(*torchfns, is_method=False, method_name=None, is_property=False, id=None, is_prim=False, tags=None, out_of_place=None, allow_tensor_subclass_proxy=False)` {#thunder.torch.torchsymbol.__init__}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/torch/__init__.py#L136-L163)

Parameters:

*   **is\_method** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **method\_name** ([_Optional_](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.15)")_\[_[_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")_\]_) –
    
*   **is\_property** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **id** ([_Optional_](https://docs.python.org/3/library/typing.html#typing.Optional "(in Python v3.15)")_\[_[_str_](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)")_\]_) –
    
*   **is\_prim** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    
*   **tags** ([_Union_](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.15)")_\[__None__,_ [_list_](https://docs.python.org/3/builtins/stdtypes.html#list "(in Python v3.15)")_\[_[_Any_](https://docs.python.org/3/library/typing.html#typing.Any "(in Python v3.15)")_\]__\]_) –
    
*   **out\_of\_place** ([_Union_](https://docs.python.org/3/library/typing.html#typing.Union "(in Python v3.15)")_\[__None__,_ [_Symbol_](/docs/thunder/core/generated/thunder.core.symbol.Symbol#thunder.core.symbol.Symbol "thunder.core.symbol.Symbol")_\]_) –
    
*   **allow\_tensor\_subclass\_proxy** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    

Methods

- [`__init__(*torchfns[, is_method, ...])`](#thunder.torch.torchsymbol.__init__)

#### `__call__(fn)` {#thunder.torch.torchsymbol.__call__}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/torch/__init__.py#L165-L237)

Call self as a function.

Return type:

[`Symbol`](/docs/thunder/core/generated/thunder.core.symbol.Symbol#thunder.core.symbol.Symbol "thunder.core.symbol.Symbol")

Parameters:

**fn** ([_Callable_](https://docs.python.org/3/library/collections.abc.html#collections.abc.Callable "(in Python v3.15)")) –

---

**Navigation**

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