Spaces:
Running
on
Zero
Running
on
Zero
Update util.py
Browse files
util.py
CHANGED
@@ -27,7 +27,6 @@ import numpy as np
|
|
27 |
|
28 |
import torch
|
29 |
import torch.nn.functional as F
|
30 |
-
import torch.cuda.amp as amp
|
31 |
import torchvision.transforms as T
|
32 |
import torchvision.transforms.functional as TF
|
33 |
|
@@ -125,7 +124,6 @@ def filter_2d_by_kernel_2d(x: torch.Tensor, k: torch.Tensor) -> torch.Tensor:
|
|
125 |
return x
|
126 |
|
127 |
|
128 |
-
@amp.autocast(False)
|
129 |
def filter_by_kernel(
|
130 |
x: torch.Tensor,
|
131 |
k: torch.Tensor,
|
|
|
27 |
|
28 |
import torch
|
29 |
import torch.nn.functional as F
|
|
|
30 |
import torchvision.transforms as T
|
31 |
import torchvision.transforms.functional as TF
|
32 |
|
|
|
124 |
return x
|
125 |
|
126 |
|
|
|
127 |
def filter_by_kernel(
|
128 |
x: torch.Tensor,
|
129 |
k: torch.Tensor,
|