I hereby claim:
- I am tscohen on github.
- I am tcohen (https://keybase.io/tcohen) on keybase.
- I have a public key ASDk2VcVVCC6AI69hfM1Dcw7AcvGpWz2SpwBYjOh71mWtgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import numpy as np | |
| import theano | |
| import theano.misc.pycuda_init | |
| from pycuda.compiler import SourceModule | |
| import theano.sandbox.cuda as cuda | |
| from theano.sandbox.cuda import GpuOp | |
| class LinearInterpolationCUDAOp(GpuOp): |
| # Implements the 1D fractional-pixel shift operator from | |
| # Condat, L. (2008). FULLY REVERSIBLE IMAGE ROTATION BY 1-D FILTERING. Signal Processing | |
| import numpy as np | |
| from scipy.misc import comb | |
| def make_b(N, tau): | |
| b = np.zeros(N) |
| import string | |
| import numpy as np | |
| import theano | |
| import theano.tensor as T | |
| from theano.sandbox.cuda import cuda_available, GpuOp | |
| from theano.ifelse import ifelse | |
| if cuda_available: |