From bcaed6697321de32394b7171697c891bceaf9205 Mon Sep 17 00:00:00 2001 From: JarvisLiu <775167809@qq.com> Date: Fri, 13 Aug 2021 14:07:34 +0800 Subject: [PATCH] add genann patch file --- components/utility/genann/origin.patch | 39 ++++++++++++++++++++++++++ components/utility/genann/patch.sha256 | 1 + components/utility/genann/src.sha256 | 1 + 3 files changed, 41 insertions(+) create mode 100644 components/utility/genann/origin.patch create mode 100644 components/utility/genann/patch.sha256 create mode 100644 components/utility/genann/src.sha256 diff --git a/components/utility/genann/origin.patch b/components/utility/genann/origin.patch new file mode 100644 index 0000000..94da110 --- /dev/null +++ b/components/utility/genann/origin.patch @@ -0,0 +1,39 @@ +diff --git a/genann-1.0.0/example1.c b/genann-1.0.0_m/example1.c +index d3f3b4e..399cf27 100644 +--- a/genann-1.0.0/example1.c ++++ b/genann-1.0.0/example1.c +@@ -3,7 +3,7 @@ + #include + #include "genann.h" + +-int main(int argc, char *argv[]) ++int GenannDemoBackpropagation(void) + { + printf("GENANN example 1.\n"); + printf("Train a small ANN to the XOR function using backpropagation.\n"); +diff --git a/genann-1.0.0/example2.c b/genann-1.0.0_m/example2.c +index fe63569..a5c92b2 100644 +--- a/genann-1.0.0/example2.c ++++ b/genann-1.0.0/example2.c +@@ -4,7 +4,7 @@ + #include + #include "genann.h" + +-int main(int argc, char *argv[]) ++int GenannDemoRandomSerch(void) + { + printf("GENANN example 2.\n"); + printf("Train a small ANN to the XOR function using random search.\n"); +diff --git a/genann-1.0.0/genann.h b/genann-1.0.0_m/genann.h +index e4b7383..6d43f9c 100644 +--- a/genann-1.0.0/genann.h ++++ b/genann-1.0.0/genann.h +@@ -100,6 +100,8 @@ double genann_act_sigmoid_cached(const genann *ann, double a); + double genann_act_threshold(const genann *ann, double a); + double genann_act_linear(const genann *ann, double a); + ++int GenannDemoBackpropagation(void); ++int GenannDemoRandomSerch(void); + + #ifdef __cplusplus + } diff --git a/components/utility/genann/patch.sha256 b/components/utility/genann/patch.sha256 new file mode 100644 index 0000000..81d7dbc --- /dev/null +++ b/components/utility/genann/patch.sha256 @@ -0,0 +1 @@ +8431e9836039b6d9501bae75e7e99bd537b3519433b360f83ad18b70f8dfa78d origin.patch diff --git a/components/utility/genann/src.sha256 b/components/utility/genann/src.sha256 new file mode 100644 index 0000000..ae4c0f6 --- /dev/null +++ b/components/utility/genann/src.sha256 @@ -0,0 +1 @@ +af0eb80559f3ebcfaf214631dcc931ed974a34dbac83c0fa6c9a82ce8e950f95 genann-1.0.0.zip -- Gitee