title: TensorFlow: Integer tensor to file pattern string
body: <p>In dataset pipeline (<code>.map()</code>) I'm using conversion from int tensor to file pattern string for <code>make_csv_dataset(...)</code>.</p>
  <h2>I get an error:</h2>
  <pre><code>ValueError: No files match `file_pattern` dataset/PAMAP2_Dataset/train/*_Tensor(&quot;strided_slice:0&quot;, shape=(), dtype=int32).csv.
  </code></pre>
  <p>Here is the error: <code>Tensor(&quot;strided_slice:0&quot;, shape=(), dtype=int32)</code> - this should be an integer number not this text .....</p>
  <h2>Code</h2>
  <pre><code>labels = [ 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 16, 17, 18, 19, 20, 24 ]
  def _make_dataset(idx):
      # shuffle
      activityID = tf.random.shuffle(labels)
  
      dataset = (
          tf.data.experimental.make_csv_dataset(
             file_pattern=(&quot;dataset/PAMAP2_Dataset/train/*_&quot; + str(activityID[idx]) + &quot;.csv&quot;),
             batch_size=1,
             num_epochs=1,
             shuffle=False,
          ).batch(64, drop_remainder=True).shuffle(64)
          
  dataset = (
      tf.data.Dataset.range(1)
      .interleave(
          map_func=_make_dataset,
          cycle_length=tf.data.AUTOTUNE,
          num_parallel_calls=tf.data.AUTOTUNE,
          deterministic=False,
      )
  )
  </code></pre>