From 1dc83febfb76d6a770bdf3ba16c4034a970c2320 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Thu, 16 May 2024 09:47:51 +0100 Subject: IVGCVSW-8260 Update Doxgen Docu for 24.05 Signed-off-by: Nikhil Raj Change-Id: If4bc983bf2793a27ded8e26ac2b29523fc1e4711 --- latest/_fill_layer_8cpp_source.html | 55 ++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 25 deletions(-) (limited to 'latest/_fill_layer_8cpp_source.html') diff --git a/latest/_fill_layer_8cpp_source.html b/latest/_fill_layer_8cpp_source.html index 9caa30f1a3..7da05b40dc 100644 --- a/latest/_fill_layer_8cpp_source.html +++ b/latest/_fill_layer_8cpp_source.html @@ -36,7 +36,7 @@ ArmNN
-  24.02 +  24.05
@@ -97,7 +97,7 @@ $(document).ready(function(){initNavTree('_fill_layer_8cpp_source.html',''); ini
Go to the documentation of this file.
1 //
-
2 // Copyright © 2020-2023 Arm Ltd and Contributors. All rights reserved.
+
2 // Copyright © 2020-2024 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #include "FillLayer.hpp"
@@ -139,27 +139,31 @@ $(document).ready(function(){initNavTree('_fill_layer_8cpp_source.html',''); ini
41 
42  auto inferredShapes = InferOutputShapes({ GetInputSlot(0).GetTensorInfo().GetShape() });
43 
-
44  ARMNN_ASSERT(inferredShapes.size() == 1);
-
45 
-
46  // Cannot validate the output shape from the input shape. but we can validate that the correct dims have been
-
47  // inferred
-
48  ConditionalThrowIfNotEqual<LayerValidationException>(
-
49  "FillLayer: TensorShape set on OutputSlot[0] does not match the inferred shape.",
-
50  GetOutputSlot(0).GetTensorInfo().GetNumDimensions(),
-
51  inferredShapes[0][0]);
-
52 }
-
53 
- -
55 {
-
56  strategy.ExecuteStrategy(this, GetParameters(), {}, GetName());
+
44  if (inferredShapes.size() != 1)
+
45  {
+
46  throw armnn::Exception("inferredShapes has "
+
47  + std::to_string(inferredShapes.size()) +
+
48  " elements - should only have 1.");
+
49  }
+
50 
+
51  // Cannot validate the output shape from the input shape. but we can validate that the correct dims have been
+
52  // inferred
+
53  ConditionalThrowIfNotEqual<LayerValidationException>(
+
54  "FillLayer: TensorShape set on OutputSlot[0] does not match the inferred shape.",
+
55  GetOutputSlot(0).GetTensorInfo().GetNumDimensions(),
+
56  inferredShapes[0][0]);
57 }
58 
-
59 } // namespace armnn
+ +
60 {
+
61  strategy.ExecuteStrategy(this, GetParameters(), {}, GetName());
+
62 }
+
63 
+
64 } // namespace armnn
-
#define ARMNN_ASSERT(COND)
Definition: Assert.hpp:14
virtual std::unique_ptr< IWorkload > CreateWorkload(const IWorkloadFactory &factory) const override
Makes a workload for the Fill layer.
Definition: FillLayer.cpp:21
-
const TensorInfo & GetTensorInfo() const override
Definition: Layer.cpp:92
+
const TensorInfo & GetTensorInfo() const override
Definition: Layer.cpp:100
@@ -172,26 +176,27 @@ $(document).ready(function(){initNavTree('_fill_layer_8cpp_source.html',''); ini
const char * GetName() const override
Returns the name of the layer.
Definition: Layer.hpp:332
FillLayer(const FillDescriptor &descriptor, const char *name)
Constructor to create a FillLayer.
Definition: FillLayer.cpp:16
-
const TensorInfo & GetTensorInfo() const override
Gets the TensorInfo for this InputSlot.
Definition: Layer.cpp:592
+
const TensorInfo & GetTensorInfo() const override
Gets the TensorInfo for this InputSlot.
Definition: Layer.cpp:614
void Fill(Encoder< float > &output, const TensorShape &desiredOutputShape, const float value)
Creates a tensor and fills it with a scalar value.
Definition: Fill.cpp:13
FillDescriptor m_Param
The parameters for the layer (not including tensor-valued weights etc.).
WorkloadInfo PrepInfoAndDesc(QueueDescriptor &descriptor) const
Helper function to reduce duplication in *Layer::CreateWorkload.
-
void VerifyShapeInferenceType(const TensorShape &outputShape, ShapeInferenceMethod shapeInferenceMethod)
Definition: Layer.cpp:504
+
void VerifyShapeInferenceType(const TensorShape &outputShape, ShapeInferenceMethod shapeInferenceMethod)
Definition: Layer.cpp:526
const TensorInfo & GetTensorInfo(const ITensorHandle *tensorHandle)
float32 helpers
-
void SetAdditionalInfo(QueueDescriptor &descriptor) const
Definition: Layer.cpp:287
+
void SetAdditionalInfo(QueueDescriptor &descriptor) const
Definition: Layer.cpp:303
+
Base class for all ArmNN exceptions so that users can filter to just those.
Definition: Exceptions.hpp:46
This layer represents a fill operation.
Definition: FillLayer.hpp:13
A FillDescriptor for the FillLayer.
FillLayer * Clone(Graph &graph) const override
Creates a dynamically-allocated copy of this layer.
Definition: FillLayer.cpp:29
const TensorShape & GetShape() const
Definition: Tensor.hpp:193
Copyright (c) 2021 ARM Limited and Contributors.
-
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
Infer the shape of the output(s) based on the provided input shape(s)
Definition: Layer.cpp:410
-
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
Definition: Layer.cpp:391
+
std::vector< TensorShape > InferOutputShapes(const std::vector< TensorShape > &inputShapes) const override
Infer the shape of the output(s) based on the provided input shape(s)
Definition: Layer.cpp:432
+
void VerifyLayerConnections(unsigned int expectedConnections, const CheckLocation &location) const
Definition: Layer.cpp:410
void ValidateTensorShapesFromInputs() override
Check if the input tensor shape(s) will lead to a valid configuration of FillLayer.
Definition: FillLayer.cpp:34
-
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
Definition: FillLayer.cpp:54
+
void ExecuteStrategy(IStrategy &strategy) const override
Apply a visitor to this layer.
Definition: FillLayer.cpp:59
ShapeInferenceMethod m_ShapeInferenceMethod
Definition: Layer.hpp:441
LayerType
When adding a new layer, adapt also the LastLayer enum value in the enum class LayerType below.
Definition: Types.hpp:491
@@ -202,7 +207,7 @@ $(document).ready(function(){initNavTree('_fill_layer_8cpp_source.html',''); ini