提交 adeab8ab authored 作者: Josh Bleecher Snyder's avatar Josh Bleecher Snyder

Include the theano version in the compiledir.

* No more forgetting to clear the cache! * No more collisions when running multiple theano versions at once!
上级 69aaa256
......@@ -6,6 +6,7 @@ import re
import sys
import theano
import theano.version
from theano.configparser import config, AddConfigVar, ConfigParam, StrParam
......@@ -13,7 +14,8 @@ def default_compiledirname():
platform_id = '-'.join([
platform.platform(),
platform.processor(),
platform.python_version()])
platform.python_version(),
theano.version.version])
platform_id = re.sub("[\(\)\s,]+", "_", platform_id)
return 'compiledir_' + platform_id
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论