From 7f0079dec5da19072cfe64aee233ecacd8ef2ffd Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Tue, 19 Jun 2018 12:00:36 +0000
Subject: [PATCH] Output video-file has the same FPS as source video-stream. Exit from demo by ESC.
---
src/activations.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/activations.c b/src/activations.c
index 6ab4963..0cbb2f5 100644
--- a/src/activations.c
+++ b/src/activations.c
@@ -32,6 +32,8 @@
return "stair";
case HARDTAN:
return "hardtan";
+ case LHTAN:
+ return "lhtan";
default:
break;
}
@@ -47,6 +49,7 @@
if (strcmp(s, "relie")==0) return RELIE;
if (strcmp(s, "plse")==0) return PLSE;
if (strcmp(s, "hardtan")==0) return HARDTAN;
+ if (strcmp(s, "lhtan")==0) return LHTAN;
if (strcmp(s, "linear")==0) return LINEAR;
if (strcmp(s, "ramp")==0) return RAMP;
if (strcmp(s, "leaky")==0) return LEAKY;
@@ -83,6 +86,8 @@
return stair_activate(x);
case HARDTAN:
return hardtan_activate(x);
+ case LHTAN:
+ return lhtan_activate(x);
}
return 0;
}
@@ -122,6 +127,8 @@
return stair_gradient(x);
case HARDTAN:
return hardtan_gradient(x);
+ case LHTAN:
+ return lhtan_gradient(x);
}
return 0;
}
--
Gitblit v1.10.0