This file contains hidden or 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
| # An implementation for GPU based bilinear upsampling including its gradient | |
| # The code is a translation from the following files: | |
| # https://github.com/pytorch/pytorch/blob/master/caffe2/operators/upsample_op.cu | |
| # https://github.com/pytorch/pytorch/blob/master/caffe2/core/common_gpu.h | |
| # Forward and backward pass have been tested to produce the same output | |
| # as pytorch - it works modulo bit noise. | |
| # Open issues: | |
| # 1) licensing? |