修改生成数据方式和网络训练方式
This commit is contained in:
@ -173,7 +173,7 @@ def timer_wrapper(func):
|
||||
start_time = time.time()
|
||||
result = func(*args, **kwargs)
|
||||
|
||||
print("function {} running time : {} s".format(func.__name__, time.time() - start_time))
|
||||
print(f"function {func.__name__} running time : {time.time() - start_time:.3f} s")
|
||||
return result
|
||||
|
||||
return measure_time
|
||||
|
Reference in New Issue
Block a user