Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CompVis/diff2flow
/ max_neg_value
Function
max_neg_value
diff2flow/models/unet/attention.py:35–36 ·
view source on GitHub ↗
(t)
Source
from the content-addressed store, hash-verified
33
34
35
def
max_neg_value(t):
36
return
-torch.finfo(t.dtype).max
37
38
39
def
init_(tensor):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected