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
""" | |
Copyright 2018 Matt Stevens. See license at end of file. | |
Defines the BilinearConvTranspose2d class. | |
""" | |
import torch | |
import torch.nn as nn | |
class BilinearConvTranspose2d(nn.ConvTranspose2d): | |
"""A conv transpose initialized to bilinear interpolation.""" |