Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

dataset_interface_test.py 420 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. import unittest
  2. from super_gradients.training.datasets import Cifar10DatasetInterface
  3. class TestDatasetInterface(unittest.TestCase):
  4. def test_cifar(self):
  5. test_dataset_interface = Cifar10DatasetInterface()
  6. cifar_dataset_sample = test_dataset_interface.get_test_sample()
  7. self.assertListEqual([3, 32, 32], list(cifar_dataset_sample[0].shape))
  8. if __name__ == '__main__':
  9. unittest.main()
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...