Replaced get_shape() with shape.
This is the recommended method to use.
This commit is contained in:
parent
414b73d3cc
commit
ad5c47fe1f
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user