-
Notifications
You must be signed in to change notification settings - Fork 204
fix: fix library name absolufy #289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
fix library name absolufy in requirements-dev.txt
- Fix critical typo: torch.optim.adam -> torch.optim.Adam - Improve exception handling: bare except -> specific json.JSONDecodeError - Add proper NotImplementedError messages for placeholder classes - Add missing DatasetDict type hint in text_dataset.py - Add reference to AGENTS.md in CONTRIBUTING.md
|
||
def _validate(self): | ||
pass | ||
raise NotImplementedError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a good practice to return an exception instance instead of the class. It works, but I would use NotImplementedError()
pass | ||
logger (bool, optional): To be setup with a Pytorch Lightning logger when implemented. | ||
""" | ||
raise NotImplementedError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, I would return the instance instead of the class
|
||
def generate( | ||
self, | ||
texts: Optional[Union[List[str], str]] = None, | ||
dataset: Optional[Text2ImageDataset] = None, | ||
): | ||
pass | ||
raise NotImplementedError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
|
||
def save(self, path: Union[str, Path]): | ||
pass | ||
raise NotImplementedError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
fix library name absolufy in requirements-dev.txt