Skip to content
Snippets Groups Projects

Added Bitshift Operator

Merged Noam Zerah requested to merge noamzerah/aidge_backend_cpu:feat_operator_bitshift into dev
Files
5
 
/********************************************************************************
 
* 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_BITSHIFTIMPL_H_
 
#define AIDGE_CPU_OPERATOR_BITSHIFTIMPL_H_
 
 
#include "aidge/backend/cpu/operator/OperatorImpl.hpp"
 
#include "aidge/operator/BitShift.hpp"
 
#include "aidge/utils/Registrar.hpp"
 
#include "aidge/utils/Types.h"
 
#include "aidge/backend/cpu/data/GetCPUPtr.h"
 
#include <memory>
 
#include <vector>
 
 
namespace Aidge {
 
// Operator implementation entry point for the backend
 
using BitShiftImpl_cpu = OperatorImpl_cpu<BitShift_Op,
 
void(const BitShift_Op::BitShiftDirection,
 
const std::vector<std::size_t>&,
 
const std::vector<std::size_t>&,
 
const std::vector<std::size_t>&,
 
const void*,
 
const void*,
 
void*)>;
 
 
// Implementation entry point registration to Operator
 
REGISTRAR(BitShift_Op,"cpu",Aidge::BitShiftImpl_cpu::create);
 
} // namespace Aidge
 
 
#endif /* AIDGE_CPU_OPERATOR_BITSHIFTIMPL_H_ */
Loading