Backend#

Implementation specification#

class aidge_core.ImplSpec#
__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: aidge_core.aidge_core.ImplSpec, funcs: collections.abc.Sequence[collections.abc.Callable[[Aidge::Operator], int]] = []) -> None

  2. __init__(self: aidge_core.aidge_core.ImplSpec, io: aidge_core.aidge_core.IOSpec, funcs: collections.abc.Sequence[collections.abc.Callable[[Aidge::Operator], int]] = []) -> None

  3. __init__(self: aidge_core.aidge_core.ImplSpec, i: aidge_core.aidge_core.IOSpec, o: aidge_core.aidge_core.IOSpec, funcs: collections.abc.Sequence[collections.abc.Callable[[Aidge::Operator], int]] = []) -> None

  4. __init__(self: aidge_core.aidge_core.ImplSpec, i: collections.abc.Sequence[aidge_core.aidge_core.IOSpec], o: collections.abc.Sequence[aidge_core.aidge_core.IOSpec], funcs: collections.abc.Sequence[collections.abc.Callable[[Aidge::Operator], int]] = []) -> None

struct ImplSpec#

ImplSpec stores the requirements or the specifications of an implementation.

Public Functions

ImplSpec(const std::vector<std::function<int(const Operator&)>> &funcs = {})#
ImplSpec(const IOSpec &io, const std::vector<std::function<int(const Operator&)>> &funcs = {})#
ImplSpec(const IOSpec &i, const IOSpec &o, const std::vector<std::function<int(const Operator&)>> &funcs = {})#
ImplSpec(const std::vector<IOSpec> &i, const std::vector<IOSpec> &o, const std::vector<std::function<int(const Operator&)>> &funcs = {})#
ImplSpec(const Aidge::ImplSpec&)#
~ImplSpec() noexcept#

Public Members

std::vector<IOSpec> inputs#
std::vector<IOSpec> outputs#
std::vector<std::shared_ptr<std::function<int(const Operator&)>>> funcs#
struct IOSpec#

Public Functions

inline IOSpec(DataType type_, DataFormat format_ = DataFormat::Any, const std::vector<std::pair<int, int>> &dims_ = {})#

Public Members

DataType type#
DataFormat format#
std::vector<std::pair<int, int>> dims#

Input/Output specification#

class aidge_core.IOSpec#
__init__(self: aidge_core.aidge_core.IOSpec, type: aidge_core.aidge_core.dtype, format: aidge_core.aidge_core.dformat = <dformat.any: 11>, dims: collections.abc.Sequence[tuple[typing.SupportsInt, typing.SupportsInt]] = []) None#