projects
/
culture.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
896806a
)
Update.
author
François Fleuret
<francois@fleuret.org>
Sun, 4 Aug 2024 08:51:54 +0000
(10:51 +0200)
committer
François Fleuret
<francois@fleuret.org>
Sun, 4 Aug 2024 08:51:54 +0000
(10:51 +0200)
main.py
patch
|
blob
|
history
diff --git
a/main.py
b/main.py
index
55615ee
..
4dca41f
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-364,6
+364,7
@@
def sigma_for_grids(input):
l = input.size(1) // 4 - 1
sigma = input.new(input.size())
r = sigma.view(sigma.size(0), 4, sigma.size(1) // 4)
+ r[:, :, 0] = 0
r[:, :, 1:] = (
torch.rand(input.size(0), 4, l, device=input.device).sort(dim=2).indices
) + 1