Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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