MCPcopy Index your code
hub / github.com/pytorch/tutorials / timeSince

Function timeSince

intermediate_source/seq2seq_translation_tutorial.py:652–657  ·  view source on GitHub ↗
(since, percent)

Source from the content-addressed store, hash-verified

650 return '%dm %ds' % (m, s)
651
652def timeSince(since, percent):
653 now = time.time()
654 s = now - since
655 es = s / (percent)
656 rs = es - s
657 return '%s (- %s)' % (asMinutes(s), asMinutes(rs))
658
659
660######################################################################

Callers 1

trainFunction · 0.70

Calls 1

asMinutesFunction · 0.85

Tested by

no test coverage detected