cs329s-ml-deployment-tutorial icon indicating copy to clipboard operation
cs329s-ml-deployment-tutorial copied to clipboard

Error in # Save model_1 model_1.save("efficientnet_model_1_10_classes")

Open fiqiamali opened this issue 4 years ago • 0 comments

KeyError: "Failed to add concrete function 'b'__inference_model_1_layer_call_fn_61750'' to object-based SavedModel as it captures tensor <tf.Tensor: shape=(), dtype=resource, value=<Resource Tensor>> which is unsupported or not reachable from root. One reason could be that a stateful object or a variable that the function depends on is not assigned to an attribute of the serialized trackable object (see SaveTest.test_captures_unreachable_variable)."

fiqiamali avatar Dec 12 '21 17:12 fiqiamali