提交 9963167b authored 作者: Frederic Bastien's avatar Frederic Bastien

allow to do a_var.transfer(another_var.type.context_name) on both back-end.

上级 beefa939
......@@ -42,6 +42,8 @@ class CudaNdarrayType(Type):
dtype = 'float32'
context_name = 'gpu' # For similar interface with the new back-end.
Variable = None
"""
This will be set to the Variable type corresponding to this class.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论