title: How to define data loader in PYTorch
body: <p>I Tried data Loader in tensor flow but how can I define data loader in PYtorch</p>
  <h1>Define data loaders.</h1>
  <pre><code>train_loader = tf.data.Dataset.from_tensor_slices((x_train, y_train))
  validation_loader = tf.data.Dataset.from_tensor_slices((x_val, y_val))
  </code></pre>
  <p>Please someone help me</p>