xnn.common.models.multilinear.multilinear#

xnn.common.models.multilinear.multilinear(block, *ops)[source]#

block.value(ops), with first and second derivatives from the block.

Parameters:
  • block (MultilinearBlock) – The block (its index tensors and sizes bound in the object).

  • *ops (Tensor) – Its operands; gradients reach those that require them.

Returns:

The block’s value.

Return type:

Tensor