This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
from ops.dcn import DeformConvPack # Needs dcn module from https://github.com/open-mmlab/mmdetection | |
torch.manual_seed(0) | |
def check_grad(): | |
device = torch.device('cuda') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
from torch import nn | |
import torchvision | |
from ops.dcn import DeformConv | |
import time | |
class NormalConv(nn.Module): | |
def __init__(self, in_channels, groups): |