79259649

Date: 2024-12-06 23:38:07
Score: 1.5
Natty:
Report link

Old question, but there are ways to do this, e.g. by inspecting frames like LightningCLI does https://github.com/Lightning-AI/pytorch-lightning/blob/be608fa355b835b9b0727df2f5476f0a1d90bc59/src/lightning/pytorch/utilities/parsing.py#L176

However, the ways above are definitely simpler and more robust.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: gebbissimo