Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pytorch/tutorials
/ asMinutes
Function
asMinutes
intermediate_source/seq2seq_translation_tutorial.py:647–650 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
645
import
math
646
647
def
asMinutes(s):
648
m = math.floor(s / 60)
649
s -= m * 60
650
return
'%dm %ds'
% (m, s)
651
652
def
timeSince(since, percent):
653
now = time.time()
Callers
1
timeSince
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected