提交 8d816f25 authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Updated doc for an Op's cache version to mention one can use any hashable object, not just integers

上级 b6a26275
......@@ -102,7 +102,7 @@ class CLinkerObject(object):
raise utils.MethodNotDefined("c_support_code", type(self), self.__class__.__name__)
def c_code_cache_version(self):
"""Return a tuple of integers indicating the version of this Op.
"""Return a tuple of hashable objects indicating the version of this Op.
An empty tuple indicates an 'unversioned' Op that will not be cached between processes.
......@@ -114,7 +114,7 @@ class CLinkerObject(object):
return ()
def c_code_cache_version_apply(self, node):
"""Return a tuple of integers indicating the version of this Op.
"""Return a tuple of hashable objects indicating the version of this Op.
An empty tuple indicates an 'unversioned' Op that will not be cached between processes.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论