3 ms·
Are you talking about parsing f-strings? How would that look like? As far I understand the following: print(f"your name is {name}") is roughly equivalent
by ash 7y ago
Are you talking about parsing f-strings? How would that look like?
As far I understand the following:
print(f"your name is {name}")
is roughly equivalent to:
print(f"your name is " + format(name))
What is there to parse?
- bhl 7y agoFor example, to checkpoint a model, I would save it as “ckpt-{epoch_number}-{val_loss}”. Given this file name and the original format string, I would like to recover the epoch number and validation loss variables back. From: ckpt-8-0.300 To: epoch=8, val_loss=0.300