You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed, some Layers for piping a single output into different chains and concat some chains back to a single vector might be useful in the future. A similar layer is also implemented in Flux.jl
A possible implementation might look like
schain =SimpleChain(
static(24),
TurboDense{true}(tanh, 8),
SimpleChains.Dropout(0.2),
SimpleChains.Parallel(
(1:5=>1, 6:8=>2), # Define that index 1:5 goes to first component, 6:8 to secondTurboDense{true}(tanh, 8),
TurboDense{true}(tanh, 8),
sum # Sums up all outputs
),
TurboDense{false}(identity, 2),
SquaredLoss(y)
);
The text was updated successfully, but these errors were encountered:
I am also very interested in this! It would be nice if the parallel chain could take multiple inputs, process them in parallel then perform some operation to combine the outputs.
As discussed, some Layers for piping a single output into different chains and concat some chains back to a single vector might be useful in the future. A similar layer is also implemented in Flux.jl
A possible implementation might look like
The text was updated successfully, but these errors were encountered: