Skip to content
Discussion options

You must be logged in to vote

However, that approach requires the model class to be known explicitly at load time.

The idea was that it is not needed to know the class. The requirement is that what is in _class_path points to a subclass of the class used to call load_from_checkpoint. So, if you always use LightningModule.load_from_checkpoint, then any checkpoint should load because all modules are subclasses of LightningModule.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@mauvilsa
Comment options

Answer selected by aditya0by0
@aditya0by0
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment