From ae43c2bc32fbb838bfebeeaf2c2b058ccab5c83c Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@burninator.cs.washington.edu>
Date: Thu, 23 Jun 2016 05:31:14 +0000
Subject: [PATCH] hi

---
 src/rnn.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/rnn.c b/src/rnn.c
index cda38ef..4f0e011 100644
--- a/src/rnn.c
+++ b/src/rnn.c
@@ -280,7 +280,7 @@
     printf("\n");
 }
 
-void test_tactic_rnn(char *cfgfile, char *weightfile, int num, char *seed, float temp, int rseed, char *token_file)
+void test_tactic_rnn(char *cfgfile, char *weightfile, int num, float temp, int rseed, char *token_file)
 {
     char **tokens = 0;
     if(token_file){
@@ -301,9 +301,8 @@
     int i, j;
     for(i = 0; i < net.n; ++i) net.layers[i].temperature = temp;
     int c = 0;
-    int len = strlen(seed);
     float *input = calloc(inputs, sizeof(float));
-    float *out;
+    float *out = 0;
 
     while((c = getc(stdin)) != EOF){
         input[c] = 1;
@@ -490,5 +489,5 @@
     else if(0==strcmp(argv[2], "validtactic")) valid_tactic_rnn(cfg, weights, seed);
     else if(0==strcmp(argv[2], "vec")) vec_char_rnn(cfg, weights, seed);
     else if(0==strcmp(argv[2], "generate")) test_char_rnn(cfg, weights, len, seed, temp, rseed, tokens);
-    else if(0==strcmp(argv[2], "generatetactic")) test_tactic_rnn(cfg, weights, len, seed, temp, rseed, tokens);
+    else if(0==strcmp(argv[2], "generatetactic")) test_tactic_rnn(cfg, weights, len, temp, rseed, tokens);
 }

--
Gitblit v1.10.0