提交 72a122c1 authored 作者: Frederic's avatar Frederic

in theano-nose --time-profile, print the current time before starting a test.

上级 3903cc33
...@@ -55,10 +55,12 @@ nosetests. ...@@ -55,10 +55,12 @@ nosetests.
import cPickle import cPickle
import datetime
import os import os
import subprocess import subprocess
import sys import sys
import datetime import time
import theano import theano
from theano.misc.windows import call_subprocess_Popen from theano.misc.windows import call_subprocess_Popen
...@@ -261,8 +263,8 @@ def run(stdout, stderr, argv, theano_nose, batch_size, time_profile, ...@@ -261,8 +263,8 @@ def run(stdout, stderr, argv, theano_nose, batch_size, time_profile,
n_tests + 1)): n_tests + 1)):
# Print the test we will start in the raw log to help # Print the test we will start in the raw log to help
# debug tests that are too long. # debug tests that are too long.
f_rawlog.write("\nWill run test #%d %s\n" % (test_id, f_rawlog.write("\n%s Will run test #%d %s\n" % (
data["ids"][test_id])) time.ctime(), test_id, data["ids"][test_id]))
f_rawlog.flush() f_rawlog.flush()
proc = call_subprocess_Popen( proc = call_subprocess_Popen(
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论