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

test_model.py 266 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
  1. import numpy as np
  2. from src.model.mnist_model import MNISTModel
  3. def test_MNISTModel_input():
  4. test_images = np.random.random((32, 28, 28, 1))
  5. model = MNISTModel()
  6. output = model(test_images)
  7. assert output.shape == (32, 10)
  8. test_MNISTModel_input()
Tip!

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

Comments

Loading...