Skip to content

Instantly share code, notes, and snippets.

@matpalm
Last active January 26, 2019 09:45
Show Gist options
  • Save matpalm/418151b124d060d9e97e72a51a46ed80 to your computer and use it in GitHub Desktop.
Save matpalm/418151b124d060d9e97e72a51a46ed80 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
from tensorflow.keras import models
from tensorflow.keras import layers
inp = layers.Input(shape=(1,))
out = layers.ReLU()(inp)
model = models.Model(inp, out)
model.save("/tmp/foo")
models.load_model("/tmp/foo") # throws TypeError: unorderable types: dict() < float()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment