From dc240b4c07f88d3ead1377bb238455c28ae45a29 Mon Sep 17 00:00:00 2001 From: romi1502 Date: Fri, 17 Jul 2020 12:17:10 +0000 Subject: [PATCH] replace string_join for tf2 compatibility --- 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})