def held_refusal
bendtorch-core@0.1.0.0 · src/autograd/gradient_PROOF.bend:817
import bendtorch-core@0.1.0.0/src/autograd/gradient_PROOF.bend as GradientPROOF
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
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
import bendtorch-core@0.1.0.0/src/tensor/elementwise_totality.bend as Totality
import bendtorch-core@0.1.0.0/src/autograd/gradient.bend as Gradient
import bendtorch-core@0.1.0.0/src/autograd/gradient_LAWS.bend as Laws
817def held_refusal(+shape: Shape.Shape, contribution: Core.Dynamic, gradient: Core.Dynamic,
818 -agrees: {Totality.dimensions(contribution) == Shape.dimensions(shape) : List<&2, U32>}) ->
819 Holds<Laws.RefusalKeeps(Gradient.Held{gradient}, contribution, Gradient.held(shape, contribution, gradient))>:
820 Core.Packed{+total_shape, total} = gradient
821 held_checked_refusal(shape, contribution, total_shape, total,
822 Layout.words_same(Shape.dimensions(total_shape), Shape.dimensions(shape)), {==}, agrees)