|
|
@ -272,8 +272,8 @@ class DeepSpeech2Tester(DeepSpeech2Trainer):
|
|
|
|
infer_model,
|
|
|
|
infer_model,
|
|
|
|
input_spec=[
|
|
|
|
input_spec=[
|
|
|
|
paddle.static.InputSpec(
|
|
|
|
paddle.static.InputSpec(
|
|
|
|
shape=[None, feat_dim, None],
|
|
|
|
shape=[None, None, feat_dim],
|
|
|
|
dtype='float32'), # audio, [B,D,T]
|
|
|
|
dtype='float32'), # audio, [B,T,D]
|
|
|
|
paddle.static.InputSpec(shape=[None],
|
|
|
|
paddle.static.InputSpec(shape=[None],
|
|
|
|
dtype='int64'), # audio_length, [B]
|
|
|
|
dtype='int64'), # audio_length, [B]
|
|
|
|
])
|
|
|
|
])
|
|
|
|