MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / inverse_sigmoid

Function inverse_sigmoid

util/misc.py:654–658  ·  view source on GitHub ↗
(x, eps=1e-3)

Source from the content-addressed store, hash-verified

652
653
654def inverse_sigmoid(x, eps=1e-3):
655 x = x.clamp(min=0, max=1)
656 x1 = x.clamp(min=eps)
657 x2 = (1 - x).clamp(min=eps)
658 return torch.log(x1 / x2)
659
660
661def clean_state_dict(state_dict):

Callers 8

init_ref_pointsMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
init_ref_pointsMethod · 0.90
prepare_for_dn2Method · 0.90
forwardMethod · 0.90
prepare_for_dn2Method · 0.90
forwardMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected