replace string_join for tf2 compatibility

This commit is contained in:
romi1502
2020-07-17 12:17:10 +00:00
committed by Romain Hennequin
parent e2937f7898
commit dc240b4c07

View File

@@ -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})