MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / interval

Method interval

NLP/Text2SQL-BASELINE/text2sql/utils/utils.py:80–89  ·  view source on GitHub ↗

check cost time from lst Returns: TODO Raises: NULL

(self)

Source from the content-addressed store, hash-verified

78 return cost
79
80 def interval(self):
81 """check cost time from lst
82 Returns: TODO
83
84 Raises: NULL
85 """
86 end = time.time()
87 cost = end - self._last
88 self._last = end
89 return cost
90
91 def ending(self):
92 """ending checking and log

Callers 2

epoch_trainFunction · 0.95
trainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected