Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension of channels last converter to models with branches #114

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions src/qonnx/custom_op/channels_last/base_wrapped_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ def to_channels_first_args(ndim):
return tuple(arg_list)


def swap_channels_from_list(l):
l[1], l[-1] = l[-1], l[1]
return l


class ChannelsLastWrappedOp(CustomOp):
# ToDo: _channelsLast_node_types should be loaded / inferred from this file or the registry.
# Standard ONNX nodes which require a ChannelsLast data format to function properly
Expand Down
Loading
Loading