blob: 2ccd286e8cd3f4f6d2f70f655db09298fb61c67c [file] [log] [blame]
/*!
* Copyright (c) 2015 by Contributors
* \file native_op.cc
* \brief
* \author Junyuan Xie
*/
#include "./native_op-inl.h"
namespace mxnet {
namespace op {
template<>
Operator *CreateOp<cpu>(NativeOpParam param) {
return new NativeOp<cpu>(param);
}
Operator* NativeOpProp::CreateOperator(Context ctx) const {
DO_BIND_DISPATCH(CreateOp, param_);
}
DMLC_REGISTER_PARAMETER(NativeOpParam);
MXNET_REGISTER_OP_PROPERTY(_Native, NativeOpProp)
.describe("Stub for implementing an operator implemented in native frontend language.")
.add_argument("data", "NDArray-or-Symbol[]", "Input data for the custom operator.")
.add_arguments(NativeOpParam::__FIELDS__());
} // namespace op
} // namespace mxnet