MCPcopy Index your code
hub / github.com/OpenDriveLab/ReSim / print

Function print

SwissArmyTransformer/examples/mae/util/misc.py:176–182  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

174 builtin_print = builtins.print
175
176 def print(*args, **kwargs):
177 force = kwargs.pop('force', False)
178 force = force or (get_world_size() > 8)
179 if is_master or force:
180 now = datetime.datetime.now().time()
181 builtin_print('[{}] '.format(now), end='') # print with time stamp
182 builtin_print(*args, **kwargs)
183
184 builtins.print = print
185

Callers 15

log_everyMethod · 0.70
init_distributed_modeFunction · 0.70
load_modelFunction · 0.70
build_datasetFunction · 0.70
interpolate_pos_embedFunction · 0.70
test_bert_inferenceFunction · 0.50
test_speedFunction · 0.50
test_train_dp.pyFile · 0.50
test_jsonlds.pyFile · 0.50
test_raw_readingFunction · 0.50
test_jpg_readingFunction · 0.50

Calls 1

get_world_sizeFunction · 0.70

Tested by 15

test_bert_inferenceFunction · 0.40
test_speedFunction · 0.40
test_raw_readingFunction · 0.40
test_jpg_readingFunction · 0.40
test_simpleds_readingFunction · 0.40
test_metads_readingFunction · 0.40
test_metads_dataloaderFunction · 0.40
test_metads_resizeFunction · 0.40
test_metads_batchFunction · 0.40
test_model_get_argsFunction · 0.40