Skip to content

Instantly share code, notes, and snippets.

@matpalm
Created January 30, 2019 22:56
Show Gist options
  • Save matpalm/4eb3fb1b379207c5f1b6e07661e80041 to your computer and use it in GitHub Desktop.
Save matpalm/4eb3fb1b379207c5f1b6e07661e80041 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.compile(loss='mean_squared_error', optimizer='sgd')
model.save("/tmp/foo")
models.load_model("/tmp/foo")
# TypeError: unorderable types: dict() < float()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment