Skip to content
Snippets Groups Projects

Added Bitshift Operator

Merged Noam Zerah requested to merge noamzerah/aidge_backend_cpu:feat_operator_bitshift into dev
All threads resolved!
Files
18
/********************************************************************************
* Copyright (c) 2023 CEA-List
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*
********************************************************************************/
#ifndef AIDGE_CPU_OPERATOR_CONSTANTOFSHAPEIMPL_H_
#define AIDGE_CPU_OPERATOR_CONSTANTOFSHAPEIMPL_H_
#include <cstddef>
#include <memory>
#include <vector>
#include "aidge/backend/OperatorImpl.hpp"
#include "aidge/operator/ConstantOfShape.hpp"
#include "aidge/utils/Registrar.hpp"
#include "aidge/utils/Types.h"
namespace Aidge {
// class ConstantOfShape_op;
class ConstantOfShapeImplForward_cpu
: public Registrable<
ConstantOfShapeImplForward_cpu, std::tuple<DataType>,
void(const std::vector<DimSize_t>, const Tensor&, void *)> {};
class ConstantOfShapeImpl_cpu : public OperatorImpl {
public:
ConstantOfShapeImpl_cpu(const ConstantOfShape_Op &op)
: OperatorImpl(op, "cpu") {}
static std::unique_ptr<ConstantOfShapeImpl_cpu>
create(const ConstantOfShapeImpl_cpu &op) {
return std::make_unique<ConstantOfShapeImpl_cpu>(op);
}
void forward() override;
};
namespace {
static Registrar<ConstantOfShape_Op> registrarConstantOfShapeImpl_cpu(
"cpu", Aidge::ConstantOfShapeImpl_cpu::create);
}
} // namespace Aidge
#endif /* _AIDGE_CPU_OPERATOR_CONSTANTOFSHAPEIMPL_H_ */
Loading