Skip to content

maximum recursion depth exceeded #2776

@misonsky

Description

@misonsky

def get_base_layer(self) -> nn.Module:
"""
(Recursively) get the base_layer.

    This is necessary for the case that the tuner layer wraps another tuner layer.

    """
    base_layer = self
    while hasattr(base_layer, "base_layer"):
        base_layer = base_layer.base_layer
    return base_layer

Error
RecursionError: maximum recursion depth exceeded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions