ArmNN
 25.11
Loading...
Searching...
No Matches
ChannelShuffleLayer.hpp
Go to the documentation of this file.
1//
2// Copyright © 2021-2023 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5#pragma once
6
8
9namespace armnn
10{
11class ChannelShuffleLayer : public LayerWithParameters<ChannelShuffleDescriptor>
12{
13public:
14
15 /// Creates a dynamically-allocated copy of this layer.
16 /// @param graph The graph into which this layer is being cloned
17 ChannelShuffleLayer* Clone(Graph& graph) const override;
18
19 /// Makes a workload for the ChannelShuffle type.
20 /// @param factory The workload factory which will create the workload
21 /// @return A pointer to the created workload, or nullptr if not created.
22 virtual std::unique_ptr<IWorkload> CreateWorkload(const IWorkloadFactory& factory) const override;
23
24 /// Check if the input tensor shape(s)
25 /// will lead to a valid configuration of @ref ChannelShuffleLayer.
26 /// @param [in] shapeInferenceMethod Indicates if output shape shall be overwritten or just validated.
27 void ValidateTensorShapesFromInputs() override;
28
29protected:
30 ChannelShuffleLayer(const ChannelShuffleDescriptor& param, const char* name);
31
33};
34
35} // namespace
ChannelShuffleLayer(const ChannelShuffleDescriptor &param, const char *name)
ChannelShuffleLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of ChannelShuffleLayer.
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the ChannelShuffle type.
LayerWithParameters(unsigned int numInputSlots, unsigned int numOutputSlots, LayerType type, const ChannelShuffleDescriptor &param, const char *name)
Copyright (c) 2021 ARM Limited and Contributors.
A ChannelShuffleDescriptor for the ChannelShuffle operator.