mirror of https://github.com/Jittor/Jittor
better dataset error msg
This commit is contained in:
parent
d531a9a9d5
commit
3e0396a14e
|
@ -8,7 +8,7 @@
|
|||
# This file is subject to the terms and conditions defined in
|
||||
# file 'LICENSE.txt', which is part of this source code package.
|
||||
# ***************************************************************
|
||||
__version__ = '1.2.2.47'
|
||||
__version__ = '1.2.2.48'
|
||||
from . import lock
|
||||
with lock.lock_scope():
|
||||
ori_int = int
|
||||
|
|
|
@ -218,8 +218,11 @@ class Dataset(object):
|
|||
img_open_hook.duration
|
||||
img_open_hook.duration = 0.0
|
||||
except:
|
||||
import traceback
|
||||
line = traceback.format_exc()
|
||||
print(line)
|
||||
os.kill(os.getppid(), signal.SIGINT)
|
||||
raise
|
||||
exit(0)
|
||||
|
||||
def display_worker_status(self):
|
||||
''' Display dataset worker status, when dataset.num_workers > 0, it will display infomation blow:
|
||||
|
|
Loading…
Reference in New Issue