Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1674: Generalise Parallel forwards pass r=DhairyaLGandhi a=DhairyaLGandhi Fix #1673 We should also do a sweep of other layers that may be more restrictive due to excessive typing. By default there should be no typing on the input, or even necessarily on the parameters. The `(::Parallel)(::Tuple)` case is interesting since the current version assumes that all the elements need to spread out, but layers may output multiple things as part of their forward pass, and ingest multiple arguments too. This is also the case in the Weave model for example. So we may want to treat tuples as invariant and treat them like a single entity. Currently, the API to pass tuples could be improved since passing tuples to layers would need an extra layer of nesting for example: `p(((x,),))` Co-authored-by: Dhairya Gandhi <[email protected]>
- Loading branch information