Merge with origin master

This commit is contained in:
Yibing Liu 2020-06-03 15:40:55 +08:00
commit b7c584e2f7
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ class Evaluator(object):
en.text_to_sequence( en.text_to_sequence(
text, p=self.p_replace), dtype=np.int64) text, p=self.p_replace), dtype=np.int64)
length = len(text) 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 = np.expand_dims(text, 0)
text_positions = np.expand_dims(text_positions, 0) text_positions = np.expand_dims(text_positions, 0)