Skip to content

Commit e301e6e

Browse files
authored
add demo class BoringModel (#11)
1 parent 88488ce commit e301e6e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# NOTE: once we add more dependencies, consider update dependabot to check for updates
22

33
lightning-sdk >=0.1.35
4+
lightning-utilities

src/litmodels/demos/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""Define a demos model for examples and testing purposes."""
2+
3+
from lightning_utilities import module_available
4+
5+
__all__ = []
6+
7+
if module_available("lightning"):
8+
from lightning.pytorch.demos.boring_classes import BoringModel, DemoModel
9+
10+
__all__ += ["BoringModel", "DemoModel"]
11+
elif module_available("pytorch_lightning"):
12+
from pytorch_lightning.demos.boring_classes import BoringModel, DemoModel
13+
14+
__all__ += ["BoringModel", "DemoModel"]

0 commit comments

Comments
 (0)