From cad3d0a1ef844f5f7f4d9c0f43113a030161384a Mon Sep 17 00:00:00 2001 From: zhaozhenlong Date: Thu, 12 Nov 2020 14:57:22 +0800 Subject: [PATCH] register ceil op --- mindspore/lite/src/ops/ceil.cc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 mindspore/lite/src/ops/ceil.cc diff --git a/mindspore/lite/src/ops/ceil.cc b/mindspore/lite/src/ops/ceil.cc new file mode 100644 index 0000000000..208cf2ecac --- /dev/null +++ b/mindspore/lite/src/ops/ceil.cc @@ -0,0 +1,31 @@ +/** + * Copyright 2019-2020 Huawei Technologies Co., Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "src/ops/ceil.h" + +#ifndef PRIMITIVE_WRITEABLE +#include "src/ops/ops_register.h" +#endif + +namespace mindspore { +namespace lite { +#ifndef PRIMITIVE_WRITEABLE +PrimitiveC *CeilCreator(const schema::Primitive *primitive) { return PrimitiveC::NewPrimitiveC(primitive); } +Registry CeilRegistry(schema::PrimitiveType_Ceil, CeilCreator); +#endif + +} // namespace lite +} // namespace mindspore