Skip to content

Replaced @ by np.matmul in Attention scores (chapter-01)#7

Open
erickrribeiro wants to merge 1 commit into
PacktPublishing:mainfrom
erickrribeiro:fix-chapter-01-attention-scores
Open

Replaced @ by np.matmul in Attention scores (chapter-01)#7
erickrribeiro wants to merge 1 commit into
PacktPublishing:mainfrom
erickrribeiro:fix-chapter-01-attention-scores

Conversation

@erickrribeiro
Copy link
Copy Markdown

@erickrribeiro erickrribeiro commented Mar 30, 2023

Description

The previous codes used np.matmul to calculate the matrix product of two arrays. Therefore, I believe it would be correct to replace @ by np.matmul here.

image

@etcetra7n
Copy link
Copy Markdown

I very much agree. I didn't realize it was matrix multiplication. I got really confused when I saw that symbol. I've never seen that except for decorators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants