Last active
February 1, 2018 15:50
-
-
Save chaserileyroberts/30b90ff725e415164aaaa2267bd71f2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mltest | |
def test_my_model(): | |
# Make placeholders for input into the model | |
input_image = tf.placeholder(...) | |
label = tf.placeholder(...) | |
# Build your model | |
model = Model(input_image, label) | |
# Run the test suite! | |
mltest.test_suite( | |
model.logits, | |
model.train_op, | |
feed_dict={ | |
input_image: np.random.randn(...) | |
label: np.random.randint(...) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment