test_random_dataset.py 297 B

12345678910111213141516
  1. #!/usr/bin/env python3
  2. # -*- coding: utf-8 -*-
  3. __author__ = "Christian Heider Nielsen"
  4. __doc__ = r"""
  5. Created on 04/12/2019
  6. """
  7. from draugr.torch_utilities import RandomDataset
  8. def test_random_dataset():
  9. s = (5, 5)
  10. assert RandomDataset(s, 10)[0].shape == (5, 5)