Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: forward() got an unexpected keyword argument 'use_tanh' #45

Open
starstarb opened this issue May 21, 2022 · 1 comment
Open

Comments

@starstarb
Copy link

Hi, Dr. Wang.
I make the config file base.yaml

light_search: True

but I meet the bug: TypeError: forward() got an unexpected keyword argument 'use_tanh'

it is In code_pyramid.py,
bn_feats, logits = neck(feats, use_tanh=use_tanh)

There is no use_tanh argument.How do I fix the bug or error? Thanks for your reply

@starstarb
Copy link
Author

and when I remove the use_tanh argument of all, I meet this bug

    return [val for val in binary_codes_list if val.shape[1] in self.eval_dims]
AttributeError: 'dict' object has no attribute 'shape'

val has no attribute shape

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant