Skip to content

Commit 2f62caa

Browse files
committed
Revise some details.
1 parent c869138 commit 2f62caa

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/TensorFlowNET.Keras/Saving/SavedModel/load.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ private static Trackable load(string path, bool compile = true, LoadOptions? opt
5656
}
5757
else
5858
{
59-
throw new NotImplementedException("Not implemented, please submit an issue to https://github.com/SciSharp/TensorFlow.NET/issues.");
59+
throw new NotImplementedException("SavedModel saved prior to TF 2.5 detected when loading Keras model, please" +
60+
" use higher version or submit an issue to https://github.com/SciSharp/TensorFlow.NET/issues. to let us know you need it.");
6061
}
6162

6263
if (metadata.Nodes is null || metadata.Nodes.Count == 0)

test/TensorFlowNET.Keras.UnitTest/SaveModel/SequentialModelLoad.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public void AlexnetFromSequential()
5959
}
6060

6161
[TestMethod]
62-
public void Temp()
62+
public void ModelWithSelfDefinedModule()
6363
{
6464
var model = tf.keras.models.load_model(@"Assets/python_func_model");
6565
model.summary();

0 commit comments

Comments
 (0)