Skip to content

Commit

Permalink
reshape to unsqueeze
Browse files Browse the repository at this point in the history
  • Loading branch information
billera committed Feb 8, 2024
1 parent e859a6a commit 2b3fed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function (ipa::Union{IPCrossA, IPA})(TiL::Tuple{AbstractArray,AbstractArray}, si

# Setting mask to the correct dim for broadcasting.
if mask != 0
mask = reshape(mask, 1, N_frames_R, N_frames_L, 1)
mask = unsqueeze(mask, dims = 1)
end

att = Flux.softmax(w_L .* (att_arg .+ bij) .+ mask, dims = 3)
Expand Down

0 comments on commit 2b3fed5

Please sign in to comment.