Skip to content

Commit 92f8298

Browse files
Bordaethanwharris
andauthored
if
Co-authored-by: Ethan Harris <[email protected]>
1 parent 4842e8d commit 92f8298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/litmodels/cloud_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def upload_model(
8888
# if LightningModule and isinstance(model, LightningModule):
8989
# path = os.path.join(staging_dir, f"{model.__class__.__name__}.ckpt")
9090
# model.save_checkpoint(path)
91-
elif torch and isinstance(model, Module):
91+
if torch and isinstance(model, Module):
9292
path = os.path.join(staging_dir, f"{model.__class__.__name__}.pth")
9393
torch.save(model.state_dict(), path)
9494
elif isinstance(model, str):

0 commit comments

Comments
 (0)