From b6de52c47bbd0a5f5d943364a8ecfcec3df7da6a Mon Sep 17 00:00:00 2001 From: hedaoyuan Date: Fri, 26 May 2017 14:50:01 +0800 Subject: [PATCH] Bug fix --- paddle/function/{ConvOp.cpp => NaiveConvOp.cpp} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename paddle/function/{ConvOp.cpp => NaiveConvOp.cpp} (95%) diff --git a/paddle/function/ConvOp.cpp b/paddle/function/NaiveConvOp.cpp similarity index 95% rename from paddle/function/ConvOp.cpp rename to paddle/function/NaiveConvOp.cpp index 50f030585..f13aa880a 100644 --- a/paddle/function/ConvOp.cpp +++ b/paddle/function/NaiveConvOp.cpp @@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -#include "ConvFunc.h" +#include "ConvOp.h" namespace paddle { @@ -102,10 +102,10 @@ public: size_t outputHeight = outputs[0].shape()[2]; size_t outputWidth = outputs[0].shape()[3]; - float* inputData = inputs[0].data(); - float* filterData = inputs[1].data(); - float* outputData = outputs[0].data(); - NaiveConvFunctor conv; + real* inputData = inputs[0].data(); + real* filterData = inputs[1].data(); + real* outputData = outputs[0].data(); + NaiveConvFunctor conv; conv(inputData, batchSize, inputChannels, -- GitLab