14 namespace optimizations
33 ReplaceConstPermuteLayer<DataType::Float16>(graph,
34 PolymorphicDowncast<ConstantLayer*>(&base),
35 PolymorphicDowncast<PermuteLayer*>(&child));
38 ReplaceConstPermuteLayer<DataType::Float32>(graph,
39 PolymorphicDowncast<ConstantLayer*>(&base),
40 PolymorphicDowncast<PermuteLayer*>(&child));
43 ReplaceConstPermuteLayer<DataType::QAsymmU8>(graph,
44 PolymorphicDowncast<ConstantLayer*>(&base),
45 PolymorphicDowncast<PermuteLayer*>(&child));
48 ReplaceConstPermuteLayer<DataType::Signed32>(graph,
49 PolymorphicDowncast<ConstantLayer*>(&base),
50 PolymorphicDowncast<PermuteLayer*>(&child));
53 ReplaceConstPermuteLayer<DataType::QSymmS16>(graph,
54 PolymorphicDowncast<ConstantLayer*>(&base),
55 PolymorphicDowncast<PermuteLayer*>(&child));
58 ReplaceConstPermuteLayer<DataType::QSymmS8>(graph,
59 PolymorphicDowncast<ConstantLayer*>(&base),
60 PolymorphicDowncast<PermuteLayer*>(&child));
63 ReplaceConstPermuteLayer<DataType::QAsymmS8>(graph,
64 PolymorphicDowncast<ConstantLayer*>(&base),
65 PolymorphicDowncast<PermuteLayer*>(&child));
68 ReplaceConstPermuteLayer<DataType::BFloat16>(graph,
69 PolymorphicDowncast<ConstantLayer*>(&base),
70 PolymorphicDowncast<PermuteLayer*>(&child));
73 ReplaceConstPermuteLayer<DataType::Signed64>(graph,
74 PolymorphicDowncast<ConstantLayer*>(&base),
75 PolymorphicDowncast<PermuteLayer*>(&child));
78 ReplaceConstPermuteLayer<DataType::Boolean>(graph,
79 PolymorphicDowncast<ConstantLayer*>(&base),
80 PolymorphicDowncast<PermuteLayer*>(&child));
91 static void ReplaceConstPermuteLayer(
Graph& graph,