def fitted
bendtorch-core@0.1.0.0 · src/autograd/reduce.bend:288
import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduce
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
288def fitted(input: Core.Dynamic, +target: Shape.Shape, +plan: Shape.BroadcastPlan, same: Bool) ->
289 Core.Dynamic & Result<&2, &1, Error, Core.Dynamic>:
290 match same:
291 case False{}:
292 (input, Fail{NotReducible{}})
293 case True{}:
294 parallel_allocated(input, target, plan, Core.new(target, 0.0))