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

Add missing RandomStateType.may_share_memory.

上级 4af3d967
......@@ -75,6 +75,11 @@ class RandomStateType(gof.Type):
else:
raise NotImplementedError()
return size
@staticmethod
def may_share_memory(a, b):
return a is b
# Register RandomStateType's C code for ViewOp.
theano.compile.register_view_op_c_code(
RandomStateType,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论