提交 bb00e661 authored 作者: Frederic's avatar Frederic

add the fct c_code_cache_version to the Generic type.

This is needed to be able to version the CURAND op and all other op that have a generic in its input.
上级 b0324504
......@@ -449,6 +449,9 @@ class Generic(SingletonType):
Py_INCREF(py_%(name)s);
""" % locals()
def c_code_cache_version(self):
return (1,)
def __str__(self):
return self.__class__.__name__
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论