code: def _get_new_batch(self, ds_type:DatasetType)->Collection[Tensor]:
          "Retrieves new batch of DatasetType, and detaches it."
          return self.learn.data.one_batch(ds_type=ds_type, detach=True, denorm=False, cpu=Falsef _get_new_batch(self, ds_type:DatasetType)->Collection[Tensor]:
          "Retrieves new batch of DatasetType, and detaches it."
          return self.learn.data.one_batch(ds_type=ds_type, detach=True, denorm=False, cpu=False)
docs: Retrieves new batch of DatasetType, and detaches it.