提交 c4018c57 authored 作者: Frederic Bastien's avatar Frederic Bastien

make the api of the cuda shared variable constructor similar to the tensor…

make the api of the cuda shared variable constructor similar to the tensor shared variable constructor.
上级 29b9b721
......@@ -65,7 +65,7 @@ class CudaNdarraySharedVariable(SharedVariable, _operators):
CudaNdarrayType.SharedVariable = CudaNdarraySharedVariable
def cuda_shared_constructor(value, name, strict=False, broadcastable=None):
def cuda_shared_constructor(value, name=None, strict=False, broadcastable=None):
"""SharedVariable Constructor for TensorType"""
# THIS CONSTRUCTOR TRIES TO CAST VALUE TO A FLOAT32, WHICH THEN GOES ONTO THE CARD
......@@ -95,7 +95,7 @@ def cuda_shared_constructor(value, name, strict=False, broadcastable=None):
raise
return rval
def float32_shared_constructor(value, name, strict=False, broadcastable=None):
def float32_shared_constructor(value, name=None, strict=False, broadcastable=None):
"""SharedVariable Constructor for TensorType"""
# if value isn't a float32 ndarray, then raise
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论