def mse_first

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

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

244def mse_first(pair: (Core.Dynamic & Core.Dynamic) & Result<&2, &1, Core.Error, Core.Dynamic>) ->
245  (Core.Dynamic & Core.Dynamic) & Result<&2, &1, Error, Recorded>:
246  (operands, d) = pair
247  (input, target) = operands
248  mse_differences(d, Elementwise.binary(Elementwise.Sub{}, target, input))

Uses (10)

Used by (1)