Skip to content

Instantly share code, notes, and snippets.

@matpalm
Created January 30, 2019 22:56
#!/usr/bin/env python3
from tensorflow.keras import models
from tensorflow.keras import layers
inp = layers.Input(shape=(1,))
out = layers.Activation('relu')(inp)
model = models.Model(inp, out)
model.save("/tmp/foo")
models.load_model("/tmp/foo")
# WARNING:tensorflow:No training configuration found in save file: the model was *not* compiled. Compile it manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment