def ce_shaped

bendtorch-core@0.1.0.0 · src/autograd/loss.bend:411

import bendtorch-core@0.1.0.0/src/autograd/loss.bend as Loss
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core

411def ce_shaped(+targets: List<&2, U32>, pair: Core.Dynamic & Shape.Shape) -> Core.Dynamic & Result<&2, &1, Error, Recorded>:
412  (logits, +shape) = pair
413  ce_dimensioned(logits, targets, Shape.dimensions(shape))

Uses (11)

Used by (1)