提交 44c06f12 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Add an api version number to allow libraries that implement ops for

theano to give comprehensible error messages if we ever do incompatible api changes for ops C code. This should change very rarely and is therefore not tied to the version number.
上级 4d4487c5
......@@ -41,6 +41,14 @@ from theano.configdefaults import config
# Version information.
from theano.version import version as __version__
# This is the api version for ops that generate C code. External ops
# might need manual changes if this number goes up. An undefined
# __api_version__ can be understood to mean api version 0.
#
# This number is not tied to the release version and should change
# very rarely.
__api_version__ = 1
from theano.gof import (
CLinker, OpWiseCLinker, DualLinker, Linker, LocalLinker, PerformLinker,
Container,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论