Utils¤
soft_maximum(a, b, k)
¤
Soft differentiable maximum function.
Arguments:
a: First input tensor.b: Second input tensor.k: Hardness.
Source code in blackbirds/utils.py
4 5 6 7 8 9 10 11 12 13 14 | |
soft_minimum(a, b, k)
¤
Soft differentiable minimum function.
Arguments:
a: First input tensor.b: Second input tensor.k: Hardness.
Source code in blackbirds/utils.py
17 18 19 20 21 22 23 24 25 26 27 | |