nb_songs=len(tf.io.gfile.glob(GCS_PATTERN)) shard_size=math.ceil(1.0*nb_songs/SHARDS) print("Pattern matches {} songs which will be rewritten as {} .tfrec files containing {} songs each.".format(nb_songs, SHARDS, shard_size)) # functions to create the dataset from raw audio # def...