This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch.nn | |
import geoopt | |
# package.nn.modules.py | |
def create_ball(ball=None, c=None): | |
if ball is None: | |
assert c is not None, "curvature of the ball should be explicitly specified" | |
ball = geoopt.PoincareBall(c) | |
elif not isinstance(ball, geoopt.PoincareBall): | |
raise ValueError("ball should be an instance of PoncareMall") | |
return ball |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
magick convert -size 3840x2160 <(scrot -o /dev/stdout)'[384x216]' -blur 0x5 -resize 1000% RGB:- | i3lock --raw 3840x2160:rgb --image /dev/stdin |
OlderNewer