23.11
|
Go to the documentation of this file.
34 static const std::map<std::string, arm_compute::DataLayout> data_layouts = {
39 #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED
45 #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED
47 catch (
const std::out_of_range &)
49 throw std::invalid_argument(
name);
57 static const std::map<std::string, Target> targets = {
63 #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED
69 #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED
71 catch (
const std::out_of_range &)
73 throw std::invalid_argument(
name);
80 static const std::map<std::string, ConvolutionMethod> methods = {
87 #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED
93 #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED
95 catch (
const std::out_of_range &)
97 throw std::invalid_argument(
name);
104 static const std::map<std::string, DepthwiseConvolutionMethod> methods = {
109 #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED
115 #ifndef ARM_COMPUTE_EXCEPTIONS_DISABLED
117 catch (
const std::out_of_range &)
119 throw std::invalid_argument(
name);
@ NCHW
Num samples, channels, height, width.
@ Default
Default approach using internal heuristics.
DepthwiseConvolutionMethod depthwise_convolution_method_from_name(const std::string &name)
Converts a string to a strong types enumeration DepthwiseConvolutionMethod.
std::string tolower(std::string string)
Convert string to lower case.
@ CL
OpenCL capable target device.
DataLayout
[DataLayout enum definition]
@ Direct
Deep direct convolution.
@ NHWC
Num samples, height, width, channels.
@ NEON
Arm® Neon™ capable target device.
@ CLVK
CLVK capable target device.
Target target_from_name(const std::string &name)
Converts a string to a strong types enumeration Target.
arm_compute::DataLayout data_layout_from_name(const std::string &name)
Converts a string to a strong types enumeration DataLayout.
@ GEMM
GEMM based convolution.
ConvolutionMethod
Supported Convolution layer methods.
Copyright (c) 2017-2023 Arm Limited.
@ Optimized3x3
Optimized 3x3 direct depthwise convolution.
DepthwiseConvolutionMethod
Supported Depthwise Convolution layer methods.
@ Default
Default approach using internal heuristics.
@ Winograd
Winograd based convolution.
ConvolutionMethod Convolution_method_from_name(const std::string &name)
Converts a string to a strong types enumeration ConvolutionMethod.