-
-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Description
Frequently I get something like
TypeError: in typeassert, expected Tuple{T, T} where T, got a value of type Tuple{Array..., Nothing}
caused by
Zygote.jl/src/lib/broadcast.jl
Line 69 in e0af1a8
| unbroadcast(x::Tuple, x̄) = NTuple{length(x)}(length(x) == length(x̄) ? x̄ : accum_sum(x̄; dims=2:ndims(x̄))) # case length(x) > 1 |
I can sometimes fix it by rewriting broadcast code or hacks like multiplying a branch by 0 and then adding it to loss. But can we just change NTuple{length(x)} to Tuple in that line?
Metadata
Metadata
Assignees
Labels
No labels