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
from torch.autograd import Function, Variable | |
import numpy as np | |
import torch | |
import torch.nn as nn | |
import pdb | |
from torch.nn.modules.utils import _pair | |
from pyinn.utils import Dtype, Stream, load_kernel | |
import torch.nn.functional as F | |
from torch.autograd import gradcheck |