From d8f00d6d6fcbff6e122e37f2d17190433385cdae Mon Sep 17 00:00:00 2001 From: daquexian Date: Thu, 7 Dec 2017 15:49:30 +0800 Subject: [PATCH] :bug: Fix bug caused by Google :P Former-commit-id: a3d1ebbda628a7e48bb1f8ff2751fe4aa2971080 --- dnnlibrary/src/main/cpp/ModelBuilder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dnnlibrary/src/main/cpp/ModelBuilder.cpp b/dnnlibrary/src/main/cpp/ModelBuilder.cpp index c7c77d2..504fc13 100644 --- a/dnnlibrary/src/main/cpp/ModelBuilder.cpp +++ b/dnnlibrary/src/main/cpp/ModelBuilder.cpp @@ -535,7 +535,8 @@ ModelBuilder::addConcat(const vector &inputs, uint32_t axis, uint32_t vector operationInputs = inputs; operationInputs.push_back(axisOperandIndex); - operationInputs.push_back(activationOperandIndex); + // This undocumented input are is in MR1, it seems not needed anymore in MR2 + // operationInputs.push_back(activationOperandIndex); ANeuralNetworksModel_addOperation(model, ANEURALNETWORKS_CONCATENATION, operationInputs.size(), &operationInputs[0], 1, &outputOperandIndex);