X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=blobdiff_plain;f=mandelbrot.py;h=c284eb06869e4a30b3ffa06e6baa84962469a6b0;hb=HEAD;hp=fa522ebbe5c510071f335720638ec9fa9e0d7adf;hpb=e282628f4e74c778428d60a89edf966bb257c660;p=pytorch.git diff --git a/mandelbrot.py b/mandelbrot.py index fa522eb..c284eb0 100755 --- a/mandelbrot.py +++ b/mandelbrot.py @@ -13,4 +13,4 @@ zi = torch.zeros(n, n) for k in range(100): zr, zi = zr**2 - zi**2 + cr, 2 * zr * zi + ci -torchvision.utils.save_image(1-(1-zr**2 + zi**2).sign(), 'mandelbrot.png') +torchvision.utils.save_image(1 - (1 - zr**2 + zi**2).sign(), "mandelbrot.png")