26 std::string permuteLayerName =
"original_permute";
30 permuteLayerName.c_str());
69 BOOST_TEST(
CheckSequence(graph.cbegin(), graph.cend(), &IsLayerOfType<armnn::InputLayer>,
70 &IsLayerOfType<armnn::InputLayer>, &IsLayerOfType<armnn::InputLayer>,
71 &IsLayerOfType<armnn::MultiplicationLayer>, &IsLayerOfType<armnn::MemCopyLayer>,
72 &IsLayerOfType<armnn::FloorLayer>, &IsLayerOfType<armnn::FakeQuantizationLayer>,
73 &IsLayerOfType<armnn::AdditionLayer>, &IsLayerOfType<armnn::ActivationLayer>,
74 &IsLayerOfType<armnn::PermuteLayer>, &IsLayerOfType<armnn::OutputLayer>));
79 BOOST_TEST(
CheckSequence(graph.cbegin(), graph.cend(), &IsLayerOfType<armnn::InputLayer>,
80 &IsLayerOfType<armnn::InputLayer>, &IsLayerOfType<armnn::InputLayer>,
81 &IsLayerOfType<armnn::PermuteLayer>, &IsLayerOfType<armnn::PermuteLayer>,
82 &IsLayerOfType<armnn::PermuteLayer>, &IsLayerOfType<armnn::MultiplicationLayer>,
83 &IsLayerOfType<armnn::MemCopyLayer>, &IsLayerOfType<armnn::FloorLayer>,
84 &IsLayerOfType<armnn::FakeQuantizationLayer>, &IsLayerOfType<armnn::AdditionLayer>,
85 &IsLayerOfType<armnn::ActivationLayer>, &IsLayerOfType<armnn::OutputLayer>));
87 std::list<std::string> testRelatedLayers = { permuteLayerName };
89 BOOST_TEST(CheckRelatedLayers<armnn::PermuteLayer>(graph, testRelatedLayers));
const OutputHandler & GetOutputHandler(unsigned int i=0) const
This layer represents a fake quantization operation.
A FakeQuantizationDescriptor for the FakeQuantizationLayer.
An ActivationDescriptor for the ActivationLayer.
This layer represents a memory copy operation.
static void Pass(Graph &graph, const Optimizations &optimizations)
This layer represents a floor operation.
This layer represents a multiplication operation.
bool CheckSequence(const armnn::Graph::ConstIterator first, const armnn::Graph::ConstIterator last)
OptimizeForConnection< Layer, PermuteLayer, MovePermuteUpImpl > MovePermuteUp
This layer represents an activation operation with the specified activation function.
This layer represents a permutation operation.
A layer user-provided data can be bound to (e.g. inputs, outputs).
Optimizer::Optimizations MakeOptimizations(Args &&... args)
void SetTensorInfo(const TensorInfo &tensorInfo)
Sets the TensorInfo used by this output handler.
This layer represents an addition operation.
A PermuteDescriptor for the PermuteLayer.
int LayerBindingId
Type of identifiers for bindable layers (inputs, outputs).
const InputSlot & GetInputSlot(unsigned int index) const override