Sgd.rate_refusal: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/autograd/sgd.bend as Sgd Lines 167-170 of bendtorch-core@0.1.0.0/src/autograd/sgd.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/autograd/sgd.bend&start_line=167&end_line=170 import Base import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise # InvalidLearningRate when lr is below zero, as PyTorch's `lr < 0.0`; None # for every other word, -0.0, NaN and +inf included. def rate_refusal(+lr: F32) -> Maybe<&2, Error>: refused_if(Elementwise.below_zero(lr)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/autograd/sgd.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/autograd/sgd.bend&name=refused_if https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/elementwise.bend&name=below_zero