Skip to content

TypeError: forward() got an unexpected keyword argument 'early_exit_layers' #5

@Lsayan

Description

@Lsayan

Hi @zhaoyiran924 , I was going through your work. Thanks for sharing.

I was running the file neuron_detection.py and encountered this error
image

I investigated a bit and found that the error was originating from utils.py file present in the generation folder in Transformer.
image
This function is present within the greedy_search function.

Can you please help me resolve this issue? I want to know which function is being invoked here in the above self() call. Thank you very much.

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