From d666b1bba534bd9e8c2f2cf29ee8de9e6d705495 Mon Sep 17 00:00:00 2001
From: Judd <foldl@outlook.com>
Date: Tue, 11 Feb 2020 18:32:03 +0800
Subject: [PATCH] Update wav_to_features.py

Remove the leading comma in the generated float array. Withi this leading comma, the generated C code can't be compiled.
---
 tensorflow/examples/speech_commands/wav_to_features.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tensorflow/examples/speech_commands/wav_to_features.py b/tensorflow/examples/speech_commands/wav_to_features.py
index 9ed02b7ab5d..972a37f49ba 100644
--- a/tensorflow/examples/speech_commands/wav_to_features.py
+++ b/tensorflow/examples/speech_commands/wav_to_features.py
@@ -117,7 +117,7 @@ def wav_to_features(sample_rate, clip_duration_ms, window_size_ms,
       for value in features.flatten():
         if i == 0:
           f.write('\n  ')
-        f.write(' ,%f' % value)
+        f.write('%f, ' % value)
         i = (i + 1) % 10
     f.write('\n};\n')