blob: a166a61ea46aef65e105205635c7483833a24ca7 [file] [log] [blame]
Ryan OSheaf4bfa6a2020-06-10 11:33:37 +01001//
2// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3// SPDX-License-Identifier: MIT
4//
5
6#include "Fill.hpp"
7
8#include "RefWorkloadUtils.hpp"
9
10namespace armnn
11{
12
13void Fill(Encoder<float>& output,
14 const TensorShape& desiredOutputShape,
15 const float value)
16{
17 for(unsigned int i = 0; i < desiredOutputShape.GetNumElements(); ++i)
18 {
19 output[i];
20 output.Set(value);
21 }
22}
23
24} //namespace armnn