104class AltAI :
public knp::core::Device
186 [[nodiscard]] const std::
string &
get_name() const override;
214 std::string altai_name_;
259 [[nodiscard]] const std::
string &
get_name() const override;
274 AltAI_HW(
size_t rows,
size_t columns, const std::vector<Port> &ports);
279 std::
string altai_name_;
The AltAI_GM class is a definition of an interface to the AltAI golden model device.
AltAI_GM(const AltAI_GM &)=delete
Avoid copy of a AltAI_GM device.
const std::string & get_name() const override
Get device name.
AltAI_GM(AltAI_GM &&)
AltAI_GM device move constructor.
AltAI_GM & operator=(const AltAI_GM &)=delete
Avoid copy assignment of a AltAI_GM device.
void load_core_grid_params(size_t rows, size_t columns, const std::vector< Port > &ports={make_standart_north_port(0)})
Load parameters to initialization grid of the AltAI core network.
AltAI_GM & operator=(AltAI_GM &&) noexcept
AltAI_GM device move operator.
float get_power() const override
Get power consumption details for the device.
friend std::vector< std::unique_ptr< AltAI > > list_altai_devices()
List all AltAI devices on which backend can be initialized.
The AltAI_HW class is a definition of an interface to AltAI hardware device.
AltAI_HW & operator=(const AltAI_HW &)=delete
Avoid copy assignment of a AltAI_HW device.
AltAI_HW()=delete
AltAI_HW device constructor is deleted.
AltAI_HW & operator=(AltAI_HW &&) noexcept
AltAI_HW device move operator.
float get_power() const override
Get power consumption details for the device.
AltAI_HW(AltAI_HW &&)
AltAI_HW device move constructor.
AltAI_HW(const AltAI_HW &)=delete
Avoid copy of a AltAI_HW device.
const std::string & get_name() const override
Get device name.
friend std::vector< std::unique_ptr< AltAI > > list_altai_devices()
List all AltAI devices on which backend can be initialized.
Base class for AltAI devices.
virtual ~AltAI()=default
AltAI destructor.
std::pair< size_t, size_t > get_grid_cols_rows() const
Get number of columns and rows in device grid.
size_t columns_
Number of columns in core grid of AltAI device.
size_t rows_
Number of rows in core grid of AltAI device.
std::vector< Port > ports_
Ports in core grid of AltAI device.
knp::core::DeviceType get_type() const override
Get device type.
std::vector< Port > get_grid_ports() const
Get port vector of device grid.
Class definition for device base class.
DeviceType
The DeviceType class defines IDs of supported device types.
Port make_standart_north_port(size_t begin_core)
Create port of standard size (4) on the north side of the AltAI grid.
Structure used to define location of input and output ports in a grid of AltAI cores.
size_t start_core
Start core.
port_side side
Side: kNorth, kSouth, kEast, or kWest.
size_t port_length
Port length from start core.
port_side
The port_side class is an enumeration class that represents sides of port connections to a grid of Al...
@ kWest
The west side of the grid (x = x_max).
@ kSouth
The south side of the grid (y = y_max).
@ kNorth
The north side of the grid (y = 0).
@ kEast
The east side of the grid (x = 0).