Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hunkim/PyTorchZeroToAll
/ time_since
Function
time_since
13_2_rnn_classification.py:33–37 ·
view source on GitHub ↗
(since)
Source
from the content-addressed store, hash-verified
31
32
# Some utility functions
33
def
time_since(since):
34
s = time.time() - since
35
m = math.floor(s / 60)
36
s -= m * 60
37
return
'%dm %ds'
% (m, s)
38
39
40
def
create_variable(tensor):
Callers
1
train
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected