def entropy_second

bendtorch-core@0.1.0.0 · src/autograd/tensor_backward.bend:493

import bendtorch-core@0.1.0.0/src/autograd/tensor_backward.bend as TensorBackward
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

493def entropy_second(+a: Nat, +input: Shape.Shape, first: Result<&2, &1, Error, Contribution>, onehot: Core.Dynamic,
494  pair: (Core.Dynamic & Core.Dynamic) & Result<&2, &1, Core.Error, Core.Dynamic>) -> Pass:
495  (operands, second) = pair
496  (g, lp) = operands
497  Pass{Operands{lp, onehot}, g, both(first, product_reduced(a, input, second))}

Uses (13)

Used by (2)