Skip to content

Commit

Permalink
remove isnothing
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroBlackstone authored and avik-pal committed Jun 30, 2024
1 parent e22bb39 commit 22f562f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layers/recurrent.jl
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ function BidirectionalRNN(cell::AbstractRecurrentCell;
merge_mode::Union{Function, Nothing}=vcat,
ordering::AbstractTimeSeriesDataBatchOrdering=BatchLastIndex())
layer = Recurrence(cell; return_sequence=true, ordering)
backward_rnn_layer = isnothing(backward_cell) ? layer :
backward_rnn_layer = backward_cell=== nothing ? layer :
Recurrence(backward_cell; return_sequence=true, ordering)
fuse_op = merge_mode === nothing ? nothing : Broadcast.BroadcastFunction(merge_mode)
return BidirectionalRNN(Parallel(
Expand Down

0 comments on commit 22f562f

Please sign in to comment.