forked fromlucidrains/DALLE2-pytorch
- Notifications
You must be signed in to change notification settings - Fork0
Commit580274b
committed
use .to(device) to avoid copy, within one_unet_in_gpu context
1 parent848e8a4 commit580274b
2 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2727 | 2727 | | |
2728 | 2728 | | |
2729 | 2729 | | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
2730 | 2734 | | |
2731 | 2735 | | |
2732 | 2736 | | |
2733 | | - | |
2734 | | - | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
2735 | 2740 | | |
2736 | 2741 | | |
2737 | 2742 | | |
| |||
3114 | 3119 | | |
3115 | 3120 | | |
3116 | 3121 | | |
3117 | | - | |
| 3122 | + | |
| 3123 | + | |
3118 | 3124 | | |
3119 | 3125 | | |
3120 | 3126 | | |
| |||
3137 | 3143 | | |
3138 | 3144 | | |
3139 | 3145 | | |
| 3146 | + | |
3140 | 3147 | | |
3141 | 3148 | | |
3142 | 3149 | | |
| |||
3146 | 3153 | | |
3147 | 3154 | | |
3148 | 3155 | | |
3149 | | - | |
| 3156 | + | |
3150 | 3157 | | |
3151 | 3158 | | |
3152 | 3159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments
Comments
(0)