Skip to content

Commit

Permalink
log model
Browse files Browse the repository at this point in the history
  • Loading branch information
khintz committed Oct 7, 2024
1 parent b53bab5 commit de27e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neural_lam/train_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def log_image(self, key, images):

def log_model(self, model):
# Create model signature
#signature = infer_signature(X.numpy(), model(X).detach().numpy())
#signature = infer_signature(train_dataset.numpy(), model(train_dataset).detach().numpy())
mlflow.pytorch.log_model(model, "model")


Expand Down Expand Up @@ -361,7 +361,7 @@ def main(input_args=None):

# Log the model
training_logger.log_model(model)

# data_module.train_dataloader().dataset.data

if __name__ == "__main__":
main()

0 comments on commit de27e9a

Please sign in to comment.