When I tried literally running
Model().from_disk('saved_model.bin')
I as referenced by the documentation, I got an error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: __init__() missing 2 required positional arguments: 'name' and 'forward'
So, the documentation needs be updated to note what kind of model instance has to be used for reading from disk. Can I use a generic Model("unknown", lambda x: None) or do I need a look-alike model to the one I'm reading?
When I tried literally running
I as referenced by the documentation, I got an error:
So, the documentation needs be updated to note what kind of model instance has to be used for reading from disk. Can I use a generic
Model("unknown", lambda x: None)or do I need a look-alike model to the one I'm reading?