xnn.common.models.multilinear.MultilinearBlock#
- class xnn.common.models.multilinear.MultilinearBlock[source]#
Bases:
objectInterface of a block for
multilinear().value(ops, only)evaluates the block;adjoints(g, ops, needs, only)returns one gradient per operand (Nonewhereneedsis false). Withonly = iboth run over the terms that contain operandi(all terms foronly = -1).second()derives the derivatives of the adjoints from them; a block may override it to share work.