diff options
author | Felix Thomasmathibalan <felixjohnny.thomasmathibalan@arm.com> | 2023-09-27 17:46:17 +0100 |
---|---|---|
committer | felixjohnny.thomasmathibalan <felixjohnny.thomasmathibalan@arm.com> | 2023-09-28 12:08:05 +0000 |
commit | afd38f0c617d6f89b2b4532c6c44f116617e2b6f (patch) | |
tree | 03bc7d5a762099989b16a656fa8d397b490ed70e /src/dynamic_fusion/sketch/gpu/GpuKernelComponentGraph.h | |
parent | bdcb4c148ee2fdeaaddf4cf1e57bbb0de02bb894 (diff) | |
download | ComputeLibrary-afd38f0c617d6f89b2b4532c6c44f116617e2b6f.tar.gz |
Apply clang-format on repository
Code is formatted as per a revised clang format configuration
file(not part of this delivery). Version 14.0.6 is used.
Exclusion List:
- files with .cl extension
- files that are not strictly C/C++ (e.g. Android.bp, Sconscript ...)
And the following directories
- compute_kernel_writer/validation/
- tests/
- include/
- src/core/NEON/kernels/convolution/
- src/core/NEON/kernels/arm_gemm/
- src/core/NEON/kernels/arm_conv/
- data/
There will be a follow up for formatting of .cl files and the
files under tests/ and compute_kernel_writer/validation/.
Signed-off-by: Felix Thomasmathibalan <felixjohnny.thomasmathibalan@arm.com>
Change-Id: Ib7eb1fcf4e7537b9feaefcfc15098a804a3fde0a
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10391
Benchmark: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gunes Bayir <gunes.bayir@arm.com>
Diffstat (limited to 'src/dynamic_fusion/sketch/gpu/GpuKernelComponentGraph.h')
-rw-r--r-- | src/dynamic_fusion/sketch/gpu/GpuKernelComponentGraph.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/dynamic_fusion/sketch/gpu/GpuKernelComponentGraph.h b/src/dynamic_fusion/sketch/gpu/GpuKernelComponentGraph.h index 85c9b45840..6f871a3c90 100644 --- a/src/dynamic_fusion/sketch/gpu/GpuKernelComponentGraph.h +++ b/src/dynamic_fusion/sketch/gpu/GpuKernelComponentGraph.h @@ -70,21 +70,21 @@ public: * @param[in] args Component arguments except for component id, which is auto-allocated */ template <typename T, typename... Args> - void add_new_component(Args &&... args) + void add_new_component(Args &&...args) { - auto comp = _services->component_factory().create<T>(std::forward<Args>(args)...); - ArgumentPack<ITensorInfo> tensors = comp->tensors(); + auto comp = _services->component_factory().create<T>(std::forward<Args>(args)...); + ArgumentPack<ITensorInfo> tensors = comp->tensors(); const auto src_tensor_ids = get_tensor_ids(tensors.get_const_src_tensors()); const auto dst_tensor_ids = get_tensor_ids(tensors.get_const_dst_tensors()); - bool success = _dependency_graph.add_operator(comp->id(), src_tensor_ids, dst_tensor_ids); + bool success = _dependency_graph.add_operator(comp->id(), src_tensor_ids, dst_tensor_ids); ARM_COMPUTE_UNUSED(success); ARM_COMPUTE_ERROR_ON(!success); _components[comp->id()] = std::move(comp); - for(auto t : tensors.get_const_src_tensors()) + for (auto t : tensors.get_const_src_tensors()) { _tensors[t->id()] = t; } - for(auto t : tensors.get_const_dst_tensors()) + for (auto t : tensors.get_const_dst_tensors()) { _tensors[t->id()] = t; } @@ -99,11 +99,11 @@ public: private: static std::vector<DependencyGraph::TensorId> get_tensor_ids(const std::vector<const ITensorInfo *> tensors); - GpuWorkloadContext *_context; - GpuComponentServices *_services; + GpuWorkloadContext *_context; + GpuComponentServices *_services; std::map<ComponentId, std::unique_ptr<IGpuKernelComponent>> _components; std::map<ITensorInfo::Id, const ITensorInfo *> _tensors; - DependencyGraph _dependency_graph{}; + DependencyGraph _dependency_graph{}; }; } // namespace dynamic_fusion } // namespace experimental |