提交 ae9825c5 authored 作者: Razvan Pascanu's avatar Razvan Pascanu

Removed trailing spaces

上级 af0fbb52
...@@ -99,6 +99,7 @@ def as_sparse_variable(x, name=None): ...@@ -99,6 +99,7 @@ def as_sparse_variable(x, name=None):
except TypeError: except TypeError:
raise TypeError("Cannot convert %s to SparseType" % x, type(x)) raise TypeError("Cannot convert %s to SparseType" % x, type(x))
as_sparse = as_sparse_variable as_sparse = as_sparse_variable
def constant(x, name=None): def constant(x, name=None):
...@@ -147,7 +148,6 @@ class SparseType(gof.Type): ...@@ -147,7 +148,6 @@ class SparseType(gof.Type):
@param format: The sparse storage strategy. @param format: The sparse storage strategy.
@return An empty SparseVariable instance. @return An empty SparseVariable instance.
""" """
dtype = str(dtype) dtype = str(dtype)
if dtype in self.dtype_set: if dtype in self.dtype_set:
self.dtype = dtype self.dtype = dtype
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论