First, Please properly indent your code with ```. Eg
>>> import code from code
>>> code.magic()
magggggiicccc
Coming to your question,
Since there are no args or kwargs to pass, just do it like
model = TheModelClass()
It will work fine.
@ptrblck I don’t think we need to the *args and *kwargs as there are none. Right? Or I am missing something? I can make a PR to fix it if that’s the case.
I think the code snippets use *args and **kwargs just to demonstrate that you should pass all necessary arguments to the model and optimizer.
If that’s confusing, maybe a short note in the text saying that you should adapt the arguments to your use case would be nice. What do you think?
@ptrblck is correct. This “tutorial” is meant to be a centralized reference document. It was NOT intended to be executed as-is. Variables in the text such as args and PATH are simply placeholders.
If that’s the case, I think it should be updated to be executed with appropriate comments. As beginners in PyTorch can hugely benefit from these. What do you think? @ptrblck@MatthewInkawhich