From af21c21b018dfacce9543e645166d7dcc9e6abbd Mon Sep 17 00:00:00 2001 From: romi1502 Date: Fri, 25 Sep 2020 13:08:58 +0200 Subject: [PATCH] Convert function to tf2 --- spleeter/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spleeter/dataset.py b/spleeter/dataset.py index fe2d349..0c8865b 100644 --- a/spleeter/dataset.py +++ b/spleeter/dataset.py @@ -238,7 +238,7 @@ class DatasetBuilder(object): def expand_path(self, sample): """ Expands audio paths for the given sample. """ - return dict(sample, **{f'{instrument}_path': tf.string_join( + return dict(sample, **{f'{instrument}_path': tf.strings.join( (self._audio_path, sample[f'{instrument}_path']), SEPARATOR) for instrument in self._instruments})