Where to get the version string of Lightning runs?

I’m using Lightning to train my model.

Lightning has a nice feature i.e. every time it runs, it creates a sub-dir in ./lightning_logs, and nams them like version_0, version_1, version_2

I want to utilize these strings to identify my prediction result sets when saving them into DB, but I don’t know How to get these version string( Not the release version of Lightning ) of Lightning runnings?

Thanks!

This might be a great question for the Lightning forum. Based on this question it seems you could change or get the version from the logger.

Thanks, ptrblck!

I don’t know there is a dedicated Lightning forum before.

No worries! I just wanted to point towards it in case the quick search did not help. Was the linked issue helpful?

Yeah, the link you given inspired me to finger out the version-string, even although a Logger obj has no direct attribute offering that.

We have to manually extract Ver-Str from Attribute log_dir of a Logger.

Thank you again!

1 Like