Skip to content

Solves Cublas error#26

Open
DhrubaPatra wants to merge 5 commits intoneccam:masterfrom
DhrubaPatra:master
Open

Solves Cublas error#26
DhrubaPatra wants to merge 5 commits intoneccam:masterfrom
DhrubaPatra:master

Conversation

@DhrubaPatra
Copy link

I think you will be run the code in 1 go now.

assert query.shape[2] == self.query_layer.in_features
assert values.shape[2] == self.key_layer.in_features
assert mask.shape[2] == values.shape[1]
if query.shape[0] != values.shape[0] != mask.shape[0]:
Copy link

Choose a reason for hiding this comment

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

This line is wrong. It should be if not (query.shape[0] == values.shape[0] == mask.shape[0]):

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