Skip to content

Conversation

@NielsRogge
Copy link
Contributor

What does this PR do?

This PR removes the need for the hard-coded d_model attribute of the Perceiver. Instead, one calculates the dimensionality (i.e. number of channels) of the inputs based on the num_channels property of the preprocessor.

Note that d_model is still relevant for users 1) when embedding text using PerceiverTextProcessor 2) when no preprocessor is provided.

@Narsil Narsil mentioned this pull request Dec 13, 2021
5 tasks
Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a very welcome change. Thank you for working on this, @NielsRogge!

@NielsRogge NielsRogge merged commit e926ea2 into huggingface:master Dec 13, 2021
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

Successfully merging this pull request may close these issues.

2 participants