/external/ComputeLibrary/utils/ |
D | CommonGraphOptions.cpp | 77 ::std::ostream &operator<<(::std::ostream &os, const CommonGraphParams &common_params) in operator <<() argument 82 os << "Threads : " << common_params.threads << std::endl; in operator <<() 83 os << "Target : " << common_params.target << std::endl; in operator <<() 84 os << "Data type : " << common_params.data_type << std::endl; in operator <<() 85 os << "Data layout : " << common_params.data_layout << std::endl; in operator <<() 86 os << "Tuner enabled? : " << (common_params.enable_tuner ? true_str : false_str) << std::endl; in operator <<() 87 … os << "Cache enabled? : " << (common_params.enable_cl_cache ? true_str : false_str) << std::endl; in operator <<() 88 os << "Tuner mode : " << common_params.tuner_mode << std::endl; in operator <<() 89 os << "Tuner file : " << common_params.tuner_file << std::endl; in operator <<() 90 os << "MLGO file : " << common_params.mlgo_file << std::endl; in operator <<() [all …]
|
/external/ComputeLibrary/tests/validate_examples/ |
D | graph_depthwiseconvolution.cpp | 157 void consume_parameters(ExampleParams &common_params) in consume_parameters() argument 159 common_params.input.width = width->value(); in consume_parameters() 160 common_params.input.height = height->value(); in consume_parameters() 161 common_params.input.fm = channels->value(); in consume_parameters() 162 common_params.input.batch = batch->value(); in consume_parameters() 163 common_params.input.quant_info = QuantizationInfo(scale->value(), offset->value()); in consume_parameters() 164 common_params.input.npy = input_npy->value(); in consume_parameters() 165 common_params.input.range_low = input_range_low->value(); in consume_parameters() 166 common_params.input.range_high = input_range_high->value(); in consume_parameters() 168 common_params.weights.width = weights_width->value(); in consume_parameters() [all …]
|
D | graph_convolution.cpp | 157 void consume_parameters(ExampleParams &common_params) in consume_parameters() argument 159 common_params.input.width = width->value(); in consume_parameters() 160 common_params.input.height = height->value(); in consume_parameters() 161 common_params.input.fm = channels->value(); in consume_parameters() 162 common_params.input.batch = batch->value(); in consume_parameters() 163 common_params.input.quant_info = QuantizationInfo(scale->value(), offset->value()); in consume_parameters() 164 common_params.input.npy = input_npy->value(); in consume_parameters() 165 common_params.input.range_low = input_range_low->value(); in consume_parameters() 166 common_params.input.range_high = input_range_high->value(); in consume_parameters() 168 common_params.weights.width = weights_width->value(); in consume_parameters() [all …]
|
D | graph_fully_connected.cpp | 101 void consume_parameters(ExampleParams &common_params) in consume_parameters() argument 103 common_params.input.width = width->value(); in consume_parameters() 104 common_params.input.batch = batch->value(); in consume_parameters() 105 … common_params.input.quant_info = QuantizationInfo(input_scale->value(), input_offset->value()); in consume_parameters() 106 common_params.input.range_low = input_range_low->value(); in consume_parameters() 107 common_params.input.range_high = input_range_high->value(); in consume_parameters() 109 …common_params.weights.quant_info = QuantizationInfo(weights_scale->value(), weights_offset->value(… in consume_parameters() 110 common_params.weights.range_low = weights_range_low->value(); in consume_parameters() 111 common_params.weights.range_high = weights_range_high->value(); in consume_parameters() 113 … common_params.output.quant_info = QuantizationInfo(output_scale->value(), output_offset->value()); in consume_parameters() [all …]
|
D | graph_validate_utils.h | 137 FrameworkParams common_params{}; 274 void consume_common_parameters(CommonParams &common_params) in consume_common_parameters() argument 276 common_params.common_params.help = help->is_set() ? help->value() : false; in consume_common_parameters() 277 common_params.common_params.threads = threads->value(); in consume_common_parameters() 278 common_params.common_params.target = target->value(); in consume_common_parameters() 280 common_params.verification.absolute_tolerance = absolute_tolerance->value(); in consume_common_parameters() 281 common_params.verification.relative_tolerance = relative_tolerance->value(); in consume_common_parameters() 282 common_params.verification.tolerance_number = tolerance_number->value(); in consume_common_parameters() 292 virtual void print_parameters(::std::ostream &os, const ExampleParams &common_params) in print_parameters() argument 294 os << "Threads : " << common_params.common_params.threads << std::endl; in print_parameters() [all …]
|
/external/ComputeLibrary/examples/ |
D | graph_lenet.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "LeNet") in GraphLenetExample() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 59 …ARM_COMPUTE_EXIT_ON_MSG(arm_compute::is_data_type_quantized_asymmetric(common_params.data_type), "… in do_setup() 62 std::cout << common_params << std::endl; in do_setup() 65 std::string data_path = common_params.data_path; in do_setup() 69 const auto operation_layout = common_params.data_layout; in do_setup() 71 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 77 graph << common_params.target in do_setup() 78 << common_params.fast_math_hint in do_setup() [all …]
|
D | graph_srcnn955.cpp | 39 …cmd_parser), model_input_width(nullptr), model_input_height(nullptr), common_params(), graph(0, "S… in GraphSRCNN955Example() 58 common_params = consume_common_graph_parameters(common_opts); in do_setup() 61 if(common_params.help) in do_setup() 72 std::cout << common_params << std::endl; in do_setup() 77 const std::string data_path = common_params.data_path; in do_setup() 84 …shape(TensorShape(image_width, image_height, 3U, common_params.batches), DataLayout::NCHW, common_… in do_setup() 85 … input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_layout(common_par… in do_setup() 90 graph << common_params.target in do_setup() 91 << common_params.fast_math_hint in do_setup() 92 …<< InputLayer(input_descriptor, get_input_accessor(common_params, std::move(preprocessor), false /… in do_setup() [all …]
|
D | graph_alexnet.cpp | 43 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "AlexNet") in GraphAlexnetExample() 53 common_params = consume_common_graph_parameters(common_opts); in do_setup() 56 if(common_params.help) in do_setup() 63 …ARM_COMPUTE_EXIT_ON_MSG(arm_compute::is_data_type_quantized_asymmetric(common_params.data_type), "… in do_setup() 66 std::cout << common_params << std::endl; in do_setup() 69 std::string data_path = common_params.data_path; in do_setup() 76 const auto operation_layout = common_params.data_layout; in do_setup() 77 …sorShape tensor_shape = permute_shape(TensorShape(227U, 227U, 3U, common_params.batches), Data… in do_setup() 78 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 83 graph << common_params.target in do_setup() [all …]
|
D | graph_vgg_vdsr.cpp | 40 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "VDSR") in GraphVDSRExample() 59 common_params = consume_common_graph_parameters(common_opts); in do_setup() 62 if(common_params.help) in do_setup() 73 std::cout << common_params << std::endl; in do_setup() 78 const std::string data_path = common_params.data_path; in do_setup() 85 …shape(TensorShape(image_width, image_height, 1U, common_params.batches), DataLayout::NCHW, common_… in do_setup() 86 … input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_layout(common_par… in do_setup() 92 graph << common_params.target in do_setup() 93 << common_params.fast_math_hint in do_setup() 95 get_input_accessor(common_params, std::move(preprocessor), false)); in do_setup() [all …]
|
D | graph_edsr.cpp | 40 : cmd_parser(), common_opts(cmd_parser), common_params() in GraphEdsrExample() 57 common_params = consume_common_graph_parameters(common_opts); in do_setup() 60 if(common_params.help) in do_setup() 66 …ARM_COMPUTE_EXIT_ON_MSG(common_params.data_type != DataType::QASYMM8, "Only QASYMM8 is supported f… in do_setup() 69 std::cout << common_params << std::endl; in do_setup() 71 model.setup(common_params, *expected_output_filename); in do_setup() 74 config.num_threads = common_params.threads; in do_setup() 75 config.use_tuner = common_params.enable_tuner; in do_setup() 76 config.tuner_mode = common_params.tuner_mode; in do_setup() 77 config.tuner_file = common_params.tuner_file; in do_setup() [all …]
|
D | graph_resnext50.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "ResNeXt50") in GraphResNeXt50Example() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 59 …ARM_COMPUTE_EXIT_ON_MSG(arm_compute::is_data_type_quantized_asymmetric(common_params.data_type), "… in do_setup() 62 std::cout << common_params << std::endl; in do_setup() 65 std::string data_path = common_params.data_path; in do_setup() 68 const auto operation_layout = common_params.data_layout; in do_setup() 69 …sorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), Data… in do_setup() 70 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 75 graph << common_params.target in do_setup() [all …]
|
D | graph_vgg16.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "VGG16") in GraphVGG16Example() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 59 std::cout << common_params << std::endl; in do_setup() 62 std::string data_path = common_params.data_path; in do_setup() 69 const auto operation_layout = common_params.data_layout; in do_setup() 70 …sorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), Data… in do_setup() 71 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 77 graph << common_params.target in do_setup() 78 << common_params.fast_math_hint in do_setup() [all …]
|
D | graph_resnet_v2_50.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "ResNetV2_50") in GraphResNetV2_50Example() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 59 std::cout << common_params << std::endl; in do_setup() 62 std::string data_path = common_params.data_path; in do_setup() 73 const auto operation_layout = common_params.data_layout; in do_setup() 74 …sorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), Data… in do_setup() 75 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 80 graph << common_params.target in do_setup() 81 << common_params.fast_math_hint in do_setup() [all …]
|
D | graph_resnet12.cpp | 39 …cmd_parser), model_input_width(nullptr), model_input_height(nullptr), common_params(), graph(0, "R… in GraphResNet12Example() 58 common_params = consume_common_graph_parameters(common_opts); in do_setup() 61 if(common_params.help) in do_setup() 72 …ARM_COMPUTE_EXIT_ON_MSG(arm_compute::is_data_type_quantized_asymmetric(common_params.data_type), "… in do_setup() 75 std::cout << common_params << std::endl; in do_setup() 80 const std::string data_path = common_params.data_path; in do_setup() 87 …shape(TensorShape(image_width, image_height, 3U, common_params.batches), DataLayout::NCHW, common_… in do_setup() 88 … input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_layout(common_par… in do_setup() 93 graph << common_params.target in do_setup() 94 << common_params.fast_math_hint in do_setup() [all …]
|
D | graph_resnet50.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "ResNetV1_50") in GraphResNetV1_50Example() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 59 std::cout << common_params << std::endl; in do_setup() 62 std::string data_path = common_params.data_path; in do_setup() 70 const auto operation_layout = common_params.data_layout; in do_setup() 71 …sorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), Data… in do_setup() 72 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 77 graph << common_params.target in do_setup() 78 << common_params.fast_math_hint in do_setup() [all …]
|
D | graph_shufflenet.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "ShuffleNet") in ShuffleNetExample() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 61 common_params.data_layout = DataLayout::NHWC; in do_setup() 65 …ARM_COMPUTE_EXIT_ON_MSG(arm_compute::is_data_type_quantized_asymmetric(common_params.data_type), "… in do_setup() 68 std::cout << common_params << std::endl; in do_setup() 75 std::string data_path = common_params.data_path; in do_setup() 84 const auto operation_layout = common_params.data_layout; in do_setup() 85 …sorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), Data… in do_setup() 86 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() [all …]
|
D | graph_vgg19.cpp | 38 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "VGG19") in GraphVGG19Example() 48 common_params = consume_common_graph_parameters(common_opts); in do_setup() 51 if(common_params.help) in do_setup() 58 std::cout << common_params << std::endl; in do_setup() 61 std::string data_path = common_params.data_path; in do_setup() 68 const auto operation_layout = common_params.data_layout; in do_setup() 69 …sorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), Data… in do_setup() 70 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 75 graph << common_params.target in do_setup() 76 << common_params.fast_math_hint in do_setup() [all …]
|
D | graph_squeezenet.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "SqueezeNetV1") in GraphSqueezenetExample() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 59 std::cout << common_params << std::endl; in do_setup() 62 std::string data_path = common_params.data_path; in do_setup() 69 const auto operation_layout = common_params.data_layout; in do_setup() 70 …sorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), Data… in do_setup() 71 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 76 graph << common_params.target in do_setup() 77 << common_params.fast_math_hint in do_setup() [all …]
|
D | graph_squeezenet_v1_1.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "SqueezeNetV1.1") in GraphSqueezenet_v1_1Example() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 59 std::cout << common_params << std::endl; in do_setup() 62 std::string data_path = common_params.data_path; in do_setup() 69 const auto operation_layout = common_params.data_layout; in do_setup() 70 …sorShape tensor_shape = permute_shape(TensorShape(227U, 227U, 3U, common_params.batches), Data… in do_setup() 71 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 76 graph << common_params.target in do_setup() 77 << common_params.fast_math_hint in do_setup() [all …]
|
D | graph_googlenet.cpp | 39 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "GoogleNet") in GraphGooglenetExample() 49 common_params = consume_common_graph_parameters(common_opts); in do_setup() 52 if(common_params.help) in do_setup() 59 …ARM_COMPUTE_EXIT_ON_MSG(arm_compute::is_data_type_quantized_asymmetric(common_params.data_type), "… in do_setup() 62 std::cout << common_params << std::endl; in do_setup() 65 std::string data_path = common_params.data_path; in do_setup() 72 const auto operation_layout = common_params.data_layout; in do_setup() 73 …sorShape tensor_shape = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), Data… in do_setup() 74 …TensorDescriptor input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_l… in do_setup() 79 graph << common_params.target in do_setup() [all …]
|
D | graph_mobilenet.cpp | 40 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "MobileNetV1") in GraphMobilenetExample() 56 common_params = consume_common_graph_parameters(common_opts); in do_setup() 59 if(common_params.help) in do_setup() 66 std::cout << common_params << std::endl; in do_setup() 72 …unsigned int spatial_size = (model_id == 0 || common_params.data_type == DataType::QASYMM8) ? 224 … in do_setup() 75 …hape(TensorShape(spatial_size, spatial_size, 3U, common_params.batches), DataLayout::NCHW, common_… in do_setup() 76 … input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_layout(common_par… in do_setup() 79 graph << common_params.target in do_setup() 80 << common_params.fast_math_hint; in do_setup() 83 if(arm_compute::is_data_type_float(common_params.data_type)) in do_setup() [all …]
|
D | graph_deepspeech_v0_4_1.cpp | 41 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "DeepSpeech v0.4.1") in GraphDeepSpeechExample() 51 common_params = consume_common_graph_parameters(common_opts); in do_setup() 54 if(common_params.help) in do_setup() 61 std::cout << common_params << std::endl; in do_setup() 64 std::string data_path = common_params.data_path; in do_setup() 80 … = permute_shape(TensorShape(26U, 19U, n_steps, 1U), DataLayout::NHWC, common_params.data_layout); in do_setup() 81 … input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_layout(common_par… in do_setup() 86 graph << common_params.target in do_setup() 87 << common_params.fast_math_hint in do_setup() 92 if(common_params.data_layout == DataLayout::NCHW) in do_setup() [all …]
|
D | graph_mobilenet_v2.cpp | 40 : cmd_parser(), common_opts(cmd_parser), common_params(), graph(0, "MobileNetV2") in GraphMobilenetV2Example() 54 common_params = consume_common_graph_parameters(common_opts); in do_setup() 57 if(common_params.help) in do_setup() 64 std::cout << common_params << std::endl; in do_setup() 67 … = permute_shape(TensorShape(224U, 224U, 3U, common_params.batches), DataLayout::NCHW, common_… in do_setup() 68 … input_descriptor = TensorDescriptor(tensor_shape, common_params.data_type).set_layout(common_par… in do_setup() 71 graph << common_params.target in do_setup() 72 << common_params.fast_math_hint; in do_setup() 75 if(arm_compute::is_data_type_float(common_params.data_type)) in do_setup() 86 << OutputLayer(get_output_accessor(common_params, 5)); in do_setup() [all …]
|
/external/ComputeLibrary/examples/gemm_tuner/ |
D | CommonGemmExampleOptions.cpp | 31 ::std::ostream &operator<<(::std::ostream &os, const CommonGemmExampleParams &common_params) in operator <<() argument 33 os << "M : " << common_params.M << std::endl; in operator <<() 34 os << "N : " << common_params.N << std::endl; in operator <<() 35 os << "K : " << common_params.K << std::endl; in operator <<() 36 os << "B : " << common_params.B << std::endl; in operator <<() 37 os << "Data type : " << common_params.data_type << std::endl; in operator <<() 38 os << "OpenCL tuner mode : " << common_params.tuner_mode << std::endl; in operator <<() 81 CommonGemmExampleParams common_params; in consume_common_gemm_example_parameters() local 82 common_params.M = options.M->value(); in consume_common_gemm_example_parameters() 83 common_params.N = options.N->value(); in consume_common_gemm_example_parameters() [all …]
|
/external/ComputeLibrary/arm_compute/graph/frontend/ |
D | Layers.h | 60 NodeParams common_params = { name(), s.hints().target_hint }; in create_layer() local 61 return GraphBuilder::add_input_node(s.graph(), common_params, _desc, std::move(_accessor)); in create_layer() 85 NodeParams common_params = { name(), s.hints().target_hint }; in create_layer() local 86 return GraphBuilder::add_const_node(s.graph(), common_params, _desc, std::move(_accessor)); in create_layer() 110 NodeParams common_params = { name(), s.hints().target_hint }; in create_layer() local 112 return GraphBuilder::add_output_node(s.graph(), common_params, input, std::move(_accessor)); in create_layer() 138 NodeParams common_params = { name(), s.hints().target_hint }; in create_layer() local 140 …return GraphBuilder::add_activation_node(s.graph(), common_params, input, _act_info, std::move(_ou… in create_layer() 178 NodeParams common_params = { name(), s.hints().target_hint }; in create_layer() local 180 …return GraphBuilder::add_arg_min_max_node(s.graph(), common_params, input, _op, _axis, _out_data_t… in create_layer() [all …]
|