<filename>tools/nntool/generation/generators/bindings/pow2/transpose_bindings_generator.py
# Copyright (C) 2020  GreenWaves Technologies, SAS

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

from generation.generators.bindings.pow2.inout_bindings_generator import \
    set_in_out_bindings
from generation.generators.generator_decorators import generation_function, QREC_POW2
from graph.types import TransposeParameters


@generation_function("bindings", (TransposeParameters, ), qrec_types=(QREC_POW2,))
def transpose_bindings_generator(gen, node, qrec, in_eparams, out_eparams, cname) -> bool:
    set_in_out_bindings(gen, in_eparams, out_eparams, cname, node, qrec)
    return True

<filename>tools/nntool/generation/generators/bindings/pow2/transpose_bindings_generator.py
# Copyright (C) 2020  GreenWaves Technologies, SAS

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.

from generation.generators.bindings.pow2.inout_bindings_generator import \
    set_in_out_bindings
from generation.generators.generator_decorators import generation_function, QREC_POW2
from graph.types import TransposeParameters


@generation_function("bindings", (TransposeParameters, ), qrec_types=(QREC_POW2,))
def transpose_bindings_generator(gen, node, qrec, in_eparams, out_eparams, cname) -> bool:
    set_in_out_bindings(gen, in_eparams, out_eparams, cname, node, qrec)
    return True

# Copyright (C) 2020  GreenWaves Technologies, SAS # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the # GNU Affero General Public License for more details. # You should have received a copy of the GNU Affero General Public License # along with this program.  If not, see <https://www.gnu.org/licenses/>.