Skip to content

Instantly share code, notes, and snippets.

@back2yes
Created March 26, 2018 14:59
Show Gist options
  • Save back2yes/0f59a4dbd77b8092b3487902ab9a23c6 to your computer and use it in GitHub Desktop.
Save back2yes/0f59a4dbd77b8092b3487902ab9a23c6 to your computer and use it in GitHub Desktop.
size of input: torch.Size([1, 4, 8, 8])
input:
(0 ,0 ,.,.) =
0.8782 -0.8192 -0.9739 -0.3594 -0.2563 0.1029 -1.8487 -0.3550
0.3321 0.0943 -0.3745 -0.6876 -0.0085 2.5286 2.0220 -0.5226
-1.3020 0.2146 0.5424 0.1033 2.4845 0.3598 1.5213 -0.1765
-0.6228 1.2918 0.3838 -1.2308 1.9327 0.1885 -0.3766 -0.0046
-0.3527 -0.7072 0.7443 -1.0632 -0.0488 0.7710 1.0156 -2.0560
0.3643 -0.0037 -0.9849 -0.3245 -0.0614 -0.4680 0.4322 -2.1684
-0.9470 -0.7947 1.5997 -0.5201 -0.4490 -0.5583 0.0956 -0.4794
-1.2678 1.2420 -0.4813 -1.2864 -0.4798 -0.4379 -0.2874 -1.3574
(0 ,1 ,.,.) =
-1.1340 1.5906 -0.9016 0.8756 0.7729 -2.2502 -1.6769 0.5554
-0.5681 -1.3683 -0.2355 -0.9906 -1.8407 -1.0619 0.5534 -0.1512
1.4378 0.4332 -0.0512 -1.4137 -0.4260 -0.8984 -0.9462 -0.0231
1.5729 0.4047 0.2340 0.6598 -0.0643 -0.1723 -0.2300 0.6363
0.2426 0.2407 0.4022 -2.1806 1.9314 -0.7408 1.3726 -1.1378
1.2983 -0.4493 -0.4879 -1.0276 -1.5421 0.6892 -0.2162 -2.0608
0.7502 -1.0448 -0.1350 0.5432 -0.2459 0.5537 -0.4821 1.2158
-1.3305 2.2235 -1.4021 1.0748 0.1999 -1.3437 -0.2751 -0.9134
(0 ,2 ,.,.) =
0.2982 -0.5634 1.2050 1.2271 1.4931 0.4215 0.6354 -1.2529
-0.9548 -0.8177 -0.9948 2.2039 0.0848 -0.1113 0.9314 0.6291
0.6410 -0.0872 -0.5462 0.8139 0.0926 -0.8189 -2.5322 1.5699
-0.7159 0.0873 -0.9579 1.0425 -0.3609 2.8733 0.6436 0.6352
0.8284 0.6960 -0.7920 -1.3053 -0.9822 -0.6016 1.1825 -0.3779
-0.6438 -0.1494 2.2743 -1.9549 -0.6009 -0.9947 0.0044 -0.6840
1.0231 0.4044 -1.4924 0.4482 0.3611 -2.6773 -0.4261 -0.9051
-0.0676 -1.2135 1.1433 0.3059 -0.8428 -1.9482 2.8056 -1.3397
(0 ,3 ,.,.) =
-1.6027 -0.7838 -0.0727 -0.4060 0.1072 0.9282 -1.4788 1.2628
0.8938 1.0442 -0.3042 1.6480 -0.2726 -0.5815 -0.2922 1.5010
0.1455 0.3197 -0.2327 -0.6361 -0.0725 0.7884 0.4055 -0.4539
0.3016 0.6361 -0.2692 2.0023 0.7115 0.9686 -0.1695 0.1780
-0.8098 1.1665 0.1184 -0.0324 -1.5257 1.2979 -0.8662 2.1594
0.5432 -1.0380 -2.8020 -1.7596 -0.6480 -0.2624 0.6264 0.2621
0.5258 -1.2897 0.1862 -0.1930 0.7978 -0.4416 -2.5772 1.6767
-1.0644 1.5358 0.4199 0.4614 0.8407 0.6754 -0.9195 -0.5109
[torch.cuda.FloatTensor of size 1x4x8x8 (GPU 0)]
Variable containing:
(0 ,0 ,.,.) =
0.0000 0.3594 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.4379 0.0000
(0 ,1 ,.,.) =
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0643 0.0000
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000
(0 ,2 ,.,.) =
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.6009 0.0000
0.0000 0.0000 0.0000 0.0000
(0 ,3 ,.,.) =
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000
0.0000 0.0000 0.0000 0.0000
[torch.cuda.FloatTensor of size 1x4x4x4 (GPU 0)]
Process finished with exit code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment