The example of tensorflow is https://www.tensorflow.org/tutorials/audio/simple_audio
I want to know the file_path
in this example as below:
def get_waveform_and_label(file_path):
label = get_label(file_path)
audio_binary = tf.io.read_file(file_path)
waveform = decode_audio(audio_binary)
return waveform, label
The 'file_path' is called in the function as below:
waveform_ds = files_ds.map(get_waveform_and_label, num_parallel_calls=AUTOTUNE)
I tried to get the value of the file_path using the print(file_path)
, but the answer is Tensor("args_0:0", shape=(), dtype=string)
.
That is not the exact value of file_path.
Finally, I don't know the value of the file_path
and input parameters of get_waveform_and_label
in the waveform_ds = files_ds.map(get_waveform_and_label, num_parallel_calls=AUTOTUNE)
.