bendtorch-core
Search uses release 0.1.0.0 · 5,204 definitions
Definitions (5,204)
- def add_word
- def combinedThe value the specification assigns to one position after a contribution is accumulated into a slot: an Unset slot takes the contribution's word as it is, and a Held slot adds the contribution's word to its own with one F32 add, the held total first.
- def held_dimensions
- def held_observe
- def Inside
- def Mapping
- def SlotKept
- def mismatched
- def RefusalKeeps
- def Fits
- def accumulated
- def Zeros
- type MappingModel
- type RefusalModel
- type Success
- type ZerosModel
- law gradient_unset_zerosA slot that never received a contribution reads as zeros of its shape.
- law gradient_heldA slot that holds a gradient reads as that gradient.
- law accumulate_mappingOn success the slot holds a gradient with the slot's dimensions.
- law accumulate_refusal_keepsEvery refusal is a shape mismatch, decided before any write: the contribution comes back unchanged, and so does the slot.
- law accumulate_valid_successA contribution and a slot that both agree with the slot's shape always accumulate.
- law grad_unset_noneLike PyTorch's .grad, a slot that never received a contribution has no gradient: grad reads it as None, not as zeros.
- law grad_held_someA slot that holds a gradient reads as that gradient.
- law reset_unsetreset returns every slot to Unset, like zero_grad(set_to_none=True).
- law reset_then_accumulate_moves_inAfter a reset, a contribution with the slot's dimensions moves in unchanged, so a -0.0 word stays -0.0 instead of becoming +0.0 + -0.0.
- law accumulate_wrong_shape_refusedA contribution whose dimensions differ from the slot's is refused with ShapeMismatch, and the slot and the contribution come back unchanged, even when the element counts agree ([3, 2] or [6] for a [2, 3] slot).