From 9ba26facf0d51e4c58265e9dddf2de31507753e5 Mon Sep 17 00:00:00 2001 From: chenfeiyu Date: Tue, 2 Jun 2020 07:07:10 +0000 Subject: [PATCH] deep coice 3: use np.int64 explicitly --- examples/deepvoice3/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/deepvoice3/utils.py b/examples/deepvoice3/utils.py index c600f5b..20e3219 100644 --- a/examples/deepvoice3/utils.py +++ b/examples/deepvoice3/utils.py @@ -121,7 +121,7 @@ class Evaluator(object): en.text_to_sequence( text, p=self.p_replace), dtype=np.int64) length = len(text) - text_positions = np.arange(1, 1 + length) + text_positions = np.arange(1, 1 + length, dtype=np.int64) text = np.expand_dims(text, 0) text_positions = np.expand_dims(text_positions, 0)