blob: b2d903a98ae6ce5ca23879aa91863cacd650068e [file] [log] [blame]
/*!
* Copyright (c) 2015 by Contributors
* \file softmax_activation.cu
* \brief
* \author Junyuan Xie
*/
#include "./softmax_activation-inl.h"
#include "./mshadow_op.h"
#if MXNET_USE_CUDNN == 1
#include "./cudnn_softmax_activation-inl.h"
#endif
namespace mxnet {
namespace op {
template<>
Operator *CreateOp<gpu>(SoftmaxActivationParam param) {
#if MXNET_USE_CUDNN == 1
return new CuDNNSoftmaxActivationOp(param);
#else
return new SoftmaxActivationOp<gpu>(param);
#endif // MXNET_USE_CUDNN
}
} // namespace op
} // namespace mxnet