Skip to content

Commit c9faa64

Browse files
make BatchedAdjOrTrans return correct BroadcastStyle (#424)
1 parent 465a7e7 commit c9faa64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/batched/batchedadjtrans.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,3 +102,5 @@ end
102102

103103
adapt_structure(to, x::BatchedAdjoint) = BatchedAdjoint(adapt(to, parent(x)))
104104
adapt_structure(to, x::BatchedTranspose) = BatchedTranspose(adapt(to, parent(x)))
105+
106+
Broadcast.BroadcastStyle(::Type{<:BatchedAdjOrTrans{T, S}}) where {T, S} = Broadcast.BroadcastStyle(S)

0 commit comments

Comments
 (0)