MCPcopy 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
33def 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
40def create_variable(tensor):

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected