Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Paper2Poster/Paper2Poster
/ softmax
Function
softmax
demo/Paper2Poster/PosterAgent/tree_split_layout.py:488–490 ·
view source on GitHub ↗
(logits)
Source
from the content-addressed store, hash-verified
486
487
488
def
softmax(logits):
489
s = sum(np.exp(logits))
490
return
[np.exp(l)/s
for
l in logits]
491
492
493
def
infer_panel_attrs(panel_model, tp, gp):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected