diff --git a/tf_adapter/kernels/prod_force_se_a.cc b/tf_adapter/kernels/prod_force_se_a.cc new file mode 100644 index 0000000000000000000000000000000000000000..cac7fe7f545fb67184f2e5aeda4ded51417089b8 --- /dev/null +++ b/tf_adapter/kernels/prod_force_se_a.cc @@ -0,0 +1,30 @@ +/* + * Copyright (c) Huawei Technologies Co., Ltd. 2019-2020. All rights reserved. + * + * 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 "tensorflow/core/framework/op_kernel.h" +#include "tensorflow/core/framework/register_types.h" + +namespace tensorflow { +template +class ProdForceSeAOP : public OpKernel { + public: + explicit ProdForceSeAOP(OpKernelConstruction *ctx) : OpKernel(ctx) { LOG(INFO) << "new ProdForceSeAOP"; } + ~ProdForceSeAOP() { LOG(INFO) << "del ProdForceSeAOP"; } + void Compute(OpKernelContext *ctx) override { LOG(INFO) << "in ProdForceSeAOP"; } + bool IsExpensive() override { return false; } +}; + +REGISTER_KERNEL_BUILDER(Name("ProdForceSeA").Device(DEVICE_CPU), ProdForceSeAOP); +} // namespace tensorflow \ No newline at end of file