File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 1717from __future__ import division
1818from __future__ import print_function
1919
20+ import warnings
21+
2022import tensorflow as tf
2123from tensorflow_io .core .python .ops import data_ops
2224
25+ warnings .warn (
26+ "The tensorflow_io.audio.WAVDataset is "
27+ "deprecated. Please look for tfio.IOTensor.from_audio "
28+ "for reading WAV files into tensorflow." ,
29+ DeprecationWarning )
30+
31+
2332class AudioDataset (data_ops .Dataset ):
2433 """A Audio File Dataset that reads the audio file."""
2534
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ def from_kafka(cls,
260260 """
261261 with tf .name_scope (kwargs .get ("name" , "IOFromKafka" )):
262262 return kafka_io_tensor_ops .KafkaIOTensor (
263- subscription ,
264- servers = kwargs .get ("servers" , None ),
265- configuration = kwargs .get ("configuration" , None ),
266- internal = True )
263+ subscription ,
264+ servers = kwargs .get ("servers" , None ),
265+ configuration = kwargs .get ("configuration" , None ),
266+ internal = True )
You can’t perform that action at this time.
0 commit comments