提交 96bc63cf authored 作者: Olivier Delalleau's avatar Olivier Delalleau

Minor typo fix

上级 47b389ff
...@@ -352,8 +352,8 @@ class CudaNdarrayType(Type): ...@@ -352,8 +352,8 @@ class CudaNdarrayType(Type):
return ret return ret
# Register CudaNdarrayType to the OutputGuard list of know type # Register CudaNdarrayType to the OutputGuard list of known types
# to have OutputGuard generate c code for this type # to have OutputGuard generate C code for this type.
theano.compile.mode.register_OutputGuard_c_code(CudaNdarrayType) theano.compile.mode.register_OutputGuard_c_code(CudaNdarrayType)
......
...@@ -326,8 +326,8 @@ class SparseType(gof.Type): ...@@ -326,8 +326,8 @@ class SparseType(gof.Type):
def is_valid_value(self, a): def is_valid_value(self, a):
return scipy.sparse.issparse(a) and (a.format == self.format) return scipy.sparse.issparse(a) and (a.format == self.format)
# Register CudaNdarrayType to the OutputGuard list of know type # Register CudaNdarrayType to the OutputGuard list of known types
# to have OutputGuard generate c code for this type # to have OutputGuard generate C code for this type.
theano.compile.mode.register_OutputGuard_c_code(SparseType) theano.compile.mode.register_OutputGuard_c_code(SparseType)
......
...@@ -910,8 +910,8 @@ class TensorType(Type): ...@@ -910,8 +910,8 @@ class TensorType(Type):
else: else:
return () return ()
# Register CudaNdarrayType to the OutputGuard list of know type # Register CudaNdarrayType to the OutputGuard list of known types
# to have OutputGuard generate c code for this type # to have OutputGuard generate C code for this type.
theano.compile.mode.register_OutputGuard_c_code(TensorType) theano.compile.mode.register_OutputGuard_c_code(TensorType)
# Easy constructors # Easy constructors
......
...@@ -53,8 +53,8 @@ class RandomStateType(gof.Type): ...@@ -53,8 +53,8 @@ class RandomStateType(gof.Type):
return False return False
return True return True
# Register CudaNdarrayType to the OutputGuard list of know type # Register CudaNdarrayType to the OutputGuard list of known types
# to have OutputGuard generate c code for this type # to have OutputGuard generate C code for this type.
theano.compile.mode.register_OutputGuard_c_code(RandomStateType) theano.compile.mode.register_OutputGuard_c_code(RandomStateType)
random_state_type = RandomStateType() random_state_type = RandomStateType()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论