diff options
author | telsoa01 <telmo.soares@arm.com> | 2018-08-31 09:22:23 +0100 |
---|---|---|
committer | telsoa01 <telmo.soares@arm.com> | 2018-08-31 09:22:23 +0100 |
commit | c577f2c6a3b4ddb6ba87a882723c53a248afbeba (patch) | |
tree | bd7d4c148df27f8be6649d313efb24f536b7cf34 /src/armnn/backends/RefWorkloads/Splitter.hpp | |
parent | 4c7098bfeab1ffe1cdc77f6c15548d3e73274746 (diff) | |
download | armnn-c577f2c6a3b4ddb6ba87a882723c53a248afbeba.tar.gz |
Release 18.08
Diffstat (limited to 'src/armnn/backends/RefWorkloads/Splitter.hpp')
-rw-r--r-- | src/armnn/backends/RefWorkloads/Splitter.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/armnn/backends/RefWorkloads/Splitter.hpp b/src/armnn/backends/RefWorkloads/Splitter.hpp index bd5da6cfe2..c12d9368bf 100644 --- a/src/armnn/backends/RefWorkloads/Splitter.hpp +++ b/src/armnn/backends/RefWorkloads/Splitter.hpp @@ -31,7 +31,7 @@ void Splitter(const SplitterQueueDescriptor& data) for (unsigned int i = 0; i<inputInfo0.GetNumDimensions(); i++) { dimensionStride /= inputInfo0.GetShape()[i]; - indices[i] = indexRemainder / dimensionStride; // use integer division to round down + indices[i] = indexRemainder / dimensionStride; // Use integer division to round down. indexRemainder -= indices[i] * dimensionStride; } @@ -39,11 +39,11 @@ void Splitter(const SplitterQueueDescriptor& data) { SplitterQueueDescriptor::ViewOrigin const& view = data.m_ViewOrigins[viewIdx]; - //split view extents are defined by the size of (the corresponding) input tensor + //Split view extents are defined by the size of (the corresponding) input tensor. const TensorInfo& outputInfo = GetTensorInfo(data.m_Outputs[viewIdx]); BOOST_ASSERT(outputInfo.GetNumDimensions() == inputInfo0.GetNumDimensions()); - // check all dimensions to see if this element is inside the given input view + // Check all dimensions to see if this element is inside the given input view. bool insideView = true; for (unsigned int i = 0; i<outputInfo.GetNumDimensions(); i++) { @@ -68,7 +68,7 @@ void Splitter(const SplitterQueueDescriptor& data) dimensionStride *= outputInfo.GetShape()[i]; } - //we are within the view, copy input data to the output corresponding to this view + //We are within the view, to copy input data to the output corresponding to this view. DataType* outputData = GetOutputTensorData<DataType>(viewIdx, data); BOOST_ASSERT(outputData); |