"vscode:/vscode.git/clone" did not exist on "7bd25e261c20c5cfb3edca90b074ca5b5d3d15ae"
Commit 10806935 authored by Liangzhe Yuan's avatar Liangzhe Yuan Committed by A. Unique TensorFlower
Browse files

Fix the audio dimensions for eval input.

PiperOrigin-RevId: 420825486
parent cf1f8a2a
......@@ -361,7 +361,7 @@ class Parser(parser.Parser):
audio = decoded_tensors[self._audio_feature]
audio = tf.cast(audio, dtype=self._dtype)
audio = preprocess_ops_3d.sample_sequence(
audio, 20, random=False, stride=1)
audio, self._audio_shape[0], random=False, stride=1)
audio = tf.ensure_shape(audio, self._audio_shape)
features['audio'] = audio
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment