From c45fd63591d2a6f895b70ed54df766daabd8ed50 Mon Sep 17 00:00:00 2001 From: Shin Date: Thu, 18 Feb 2016 20:34:57 +0100 Subject: [PATCH] added perfomance to readme and modified instructions --- README.md | 15 ++++++++------- src/NeuralNetwork/BasisFunction/Linear.cpp | 7 ++++--- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index fe9d197..78a6783 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,11 @@ Perfomace i5-5300U & 8GB ram -| date | feedforward_perf | recurrent_perf | backpropagation_perf | --------------------- | ---------------- | -------------- | -------------------- | -| FANN | 12.6 | | | --------------------- | ---------------- | -------------- | -------------------- | -| 2016/02/07 initial | 8.27 sec | 7.15 sec | 6.00 sec | -| 2016/02/17 AVX | 5.53 sec | 4.68 sec | 4.63 sec | -| 2016/02/17 weights | 5.53 sec | 4.68 sec | 3.02 sec | \ No newline at end of file +| date | feedforward_perf | recurrent_perf | backpropagation_perf | +------------------------ | ---------------- | -------------- | -------------------- | +| FANN | 12.6 | | | +------------------------ | ---------------- | -------------- | -------------------- | +| 2016/02/07 initial | 8.27 sec | 7.15 sec | 6.00 sec | +| 2016/02/17 AVX | 5.53 sec | 4.68 sec | 4.63 sec | +| 2016/02/17 weights | 5.53 sec | 4.68 sec | 3.02 sec | +| 2016/02/18 neuron ref. | 5.53 sec | 4.68 sec | 1.02 sec | \ No newline at end of file diff --git a/src/NeuralNetwork/BasisFunction/Linear.cpp b/src/NeuralNetwork/BasisFunction/Linear.cpp index 29dc98b..c676375 100644 --- a/src/NeuralNetwork/BasisFunction/Linear.cpp +++ b/src/NeuralNetwork/BasisFunction/Linear.cpp @@ -19,12 +19,12 @@ float NeuralNetwork::BasisFunction::Linear::operator()(const std::vector partialSolution.avx=_mm256_setzero_ps(); for(size_t k=0;k partialSolution.avx = _mm256_hadd_ps(partialSolution.avx, partialSolution.avx); return partialSolution.f[0]; + #elif USE_SSE std::size_t alignedPrev=inputSize-inputSize%4;