2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // See LICENSE file in the project root for full license information.
6 #include "Multiplication.hpp"
7 #include "Broadcast.hpp"
14 void ElementwiseMultiplication(unsigned int numElements,
19 for (unsigned int i = 0; i < numElements; ++i)
21 outData[i] = inData0[i] * inData1[i];
30 void Multiplication(const TensorShape& inShape0,
31 const TensorShape& inShape1,
32 const TensorShape& outShape,
37 if (inShape0 == inShape1)
39 ElementwiseMultiplication(inShape0.GetNumElements(), inData0, inData1, outData);
43 BroadcastLoop(inShape0, inShape1, outShape).Unroll(
44 std::multiplies<float>(),