We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a1303a commit 49eaa53Copy full SHA for 49eaa53
tensordiffeq/models.py
@@ -180,6 +180,12 @@ def predict(self, X_star):
180
f_u_star = self.f_model(self.u_model, *X_star)
181
return u_star.numpy(), f_u_star.numpy()
182
183
+ def save(self, path):
184
+ self.u_model.save(path)
185
+
186
+ def load_model(self, path):
187
+ self.u_model = tf.keras.models.load_model(path)
188
189
190
# WIP
191
# TODO Distributed Discovery Model
0 commit comments