提交 64670661 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Define bin_path if base_path is defined, not if it's non-default.

上级 9c3d3f45
...@@ -407,15 +407,12 @@ AddConfigVar('dnn.library_path', ...@@ -407,15 +407,12 @@ AddConfigVar('dnn.library_path',
def default_dnn_bin_path(): def default_dnn_bin_path():
if type(theano.config.dnn).base_path.is_default: if theano.config.dnn.base_path != '':
return '' if sys.platform == 'win32':
else: return os.path.join(theano.config.dnn.base_path, 'bin')
if theano.config.dnn.base_path != '': else:
if sys.platform == 'win32': return theano.config.dnn.library_path
return os.path.join(theano.config.dnn.base_path, 'bin') return ''
else:
return theano.config.dnn.library_path
return ''
AddConfigVar('dnn.bin_path', AddConfigVar('dnn.bin_path',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论