Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/openai/guided-diffusion
/ check_overflow
Function
check_overflow
guided_diffusion/fp16_util.py:236–237 ·
view source on GitHub ↗
(value)
Source
from the content-addressed store, hash-verified
234
235
236
def
check_overflow(value):
237
return
(value == float(
"inf"
)) or (value == -float(
"inf"
)) or (value != value)
Callers
1
_optimize_fp16
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected