* Copyright (c) 2025 Huawei Technologies Co., Ltd.
* This program is free software, you can redistribute it and/or modify it under the terms and conditions of
* CANN Open Software License Agreement Version 2.0 (the "License").
* Please refer to the License for details. You may not use this file except in compliance with the License.
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
* See LICENSE in the root of the software repository for the full text of the License.
*/
* \file log1p_tiling_arch35.h
* \brief
*/
#ifndef OPS_OP_TILING_RUNTIME_LOG1P_TILING_H
#define OPS_OP_TILING_RUNTIME_LOG1P_TILING_H
#include "op_host/tiling_base_class.h"
#include "../../op_kernel/arch35/log1p_tiling_struct.h"
namespace optiling {
struct Log1pCompileInfo {
uint64_t coreNum;
uint64_t ubSize;
};
class Log1pTiling
{
public:
explicit Log1pTiling(gert::TilingContext* context) : tilingContext(context) {};
ge::graphStatus RunTiling();
Log1pNs::Log1pTilingData* tiling = nullptr;
protected:
ge::graphStatus CalcOutputDtype();
ge::graphStatus CalcInputDtype();
ge::graphStatus CheckShape();
ge::graphStatus SetTilingData();
private:
gert::TilingContext* tilingContext;
ge::DataType outputDtype = ge::DT_UNDEFINED;
ge::DataType inputDtype = ge::DT_UNDEFINED;
uint64_t dType = 0;
};
}
#endif