combinators

combinators#

Dataflow combinators for neural networks.

This module defines a number of combinators for expressing dataflow in common neural networks. These primitives can be composed to construct more complex behavior.

Classes

BranchAndAddTogether

A data-flow branch with additive interactions between branches.

BranchAndMultiplyTogether

A data-flow branch with multiplicative interactions between branches.

Residual

A residual block, which runs its sublayers then adds the input.