Design Pattern: torch.hub.load() design pattern? How to make model loader?

Viewed 19

The torch.hub.load() method defined here, What is the design pattern of this method and how to replicate the functionality of loading multiple models using a command similar to

model = createModel('model_name')

Thanks

0 Answers
Related