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

fix typos #130

Merged
merged 1 commit into from
Feb 16, 2023
Merged

fix typos #130

merged 1 commit into from
Feb 16, 2023

Conversation

ymtoo
Copy link
Contributor

@ymtoo ymtoo commented Feb 16, 2023

Fixes

julia> Layers.SelfAttention(8, 512)
ERROR: UndefVarError: hidden_state not defined
Stacktrace:
 [1] Transformers.Layers.SelfAttention(head::Int64, hidden_size::Int64; dropout::Nothing, return_score::Bool, causal::Bool)
   @ Transformers.Layers ~/.julia/packages/Transformers/nIgPX/src/layers/layer.jl:285
 [2] Transformers.Layers.SelfAttention(head::Int64, hidden_size::Int64)
   @ Transformers.Layers ~/.julia/packages/Transformers/nIgPX/src/layers/layer.jl:284
 [3] top-level scope
   @ REPL[73]:1
 [4] top-level scope
   @ ~/.julia/packages/CUDA/BbliS/src/initialization.jl:52

julia> Layers.CrossAttention(8, 512)
ERROR: UndefVarError: hidden_state not defined
Stacktrace:
 [1] Transformers.Layers.CrossAttention(head::Int64, hidden_size::Int64; dropout::Nothing, return_score::Bool)
   @ Transformers.Layers ~/.julia/packages/Transformers/nIgPX/src/layers/layer.jl:319
 [2] Transformers.Layers.CrossAttention(head::Int64, hidden_size::Int64)
   @ Transformers.Layers ~/.julia/packages/Transformers/nIgPX/src/layers/layer.jl:318
 [3] top-level scope
   @ REPL[74]:1
 [4] top-level scope
   @ ~/.julia/packages/CUDA/BbliS/src/initialization.jl:52

@chengchingwen
Copy link
Owner

Thanks!

@chengchingwen chengchingwen merged commit 29bb6b0 into chengchingwen:master Feb 16, 2023
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