MCPcopy
hub / github.com/mosaicml/composer / test_timestamp_update

Function test_timestamp_update

tests/test_time.py:140–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139
140def test_timestamp_update():
141 timestamp = Timestamp(epoch=1)
142 timestamp_2 = timestamp.copy(batch=2)
143 assert timestamp_2.epoch == 1
144 assert timestamp_2.batch == 2
145 assert timestamp_2.sample == 0
146 assert timestamp is not timestamp_2
147
148
149def test_set_timestamp():

Callers

nothing calls this directly

Calls 2

copyMethod · 0.95
TimestampClass · 0.90

Tested by

no test coverage detected