Skip to content

Broadcast Layer #772

Answered by avik-pal
avik-pal asked this question in Q&A
Discussion options

You must be logged in to vote

Honesty with the introduction of @compact, it might make sense not to have them inbuilt. Broadcasting is effectively:

@compact(; layer = <your layer>) do x::Union{NTuple{<:AbstractArray}, AbstractVector{<:AbstractArray}
    @return map(layer, x)
end

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

avik-pal
Jul 14, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by avik-pal
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #426 on July 16, 2024 02:42.