X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=pysvrt.git;a=blobdiff_plain;f=test-svrt.py;h=5c16069d3ce7ff0bced73eb5d079a9e20a74b1b5;hp=c1309bc98524fc289e33e047ce673329ceb1f0e2;hb=034e1a7f3e7174a2eebfcff388fa0fefc8c331e7;hpb=26dffa334607dc6f57139d19eb0b793cb3ac8484 diff --git a/test-svrt.py b/test-svrt.py index c1309bc..5c16069 100755 --- a/test-svrt.py +++ b/test-svrt.py @@ -34,7 +34,7 @@ from torch.nn import functional as fn from torchvision import datasets, transforms, utils -from _ext import svrt +import svrt labels = torch.LongTensor(12).zero_() labels.narrow(0, 0, labels.size(0)//2).fill_(1) @@ -46,3 +46,5 @@ x = x.view(x.size(0), 1, x.size(1), x.size(2)) x.div_(255) torchvision.utils.save_image(x, 'example.png') + +print('Wrote example.png')