Replaced get_shape() with shape.

This is the recommended method to use.
This commit is contained in:
Amit Srivastava 2019-03-13 14:25:19 +05:30
parent 414b73d3cc
commit ad5c47fe1f

View File

@ -96,7 +96,7 @@ def audio_microfrontend(audio,
Raises:
ValueError: If the audio tensor is not explicitly a vector.
"""
audio_shape = audio.get_shape()
audio_shape = audio.shape
if audio_shape.ndims is None:
raise ValueError("Input to `AudioMicrofrontend` should have known rank.")
if len(audio_shape) > 1: