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 math | |
from torch import nn | |
from torch.nn import init | |
# pre-trained SRResNet model | |
model_url = 'https://s3.amazonaws.com/pytorch/demos/srresnet-e10b2039.pth' | |
# model definition | |
def _initialize_orthogonal(conv): |