blob: eb9c78b1d5a8f279eaed2651f76f2d26877bf9da [file] [log] [blame]
/*!
* Copyright (c) 2015 by Contributors
* \file deconvolution.cu
* \brief
* \author Wei Wu
*/
#include "./deconvolution-inl.h"
#if MXNET_USE_CUDNN == 1
#include "./cudnn_deconvolution-inl.h"
#endif // MXNET_USE_CUDNN
namespace mxnet {
namespace op {
template<>
Operator* CreateOp<gpu>(DeconvolutionParam param, int dtype) {
Operator *op = NULL;
#if MXNET_USE_CUDNN == 1
MSHADOW_REAL_TYPE_SWITCH(dtype, DType, {
op = new CuDNNDeconvolutionOp<DType>(param);
});
#else
MSHADOW_REAL_TYPE_SWITCH(dtype, DType, {
op = new DeconvolutionOp<gpu, DType>(param);
});
#endif // MXNET_USE_CUDNN
return op;
}
} // namespace op
} // namespace mxnet