提交 12f76081 authored 作者: Frederic's avatar Frederic

typo fix following code review.

上级 d4868edc
...@@ -421,7 +421,7 @@ as_op ...@@ -421,7 +421,7 @@ as_op
as_op is a python decorator that converts a python function into a as_op is a python decorator that converts a python function into a
basic Theano op that will call the supplied function during execution. basic Theano op that will call the supplied function during execution.
This isn't the recommand way way to build an op, but allow quick This isn't the recommended way to build an op, but allows for a quick
implementation. implementation.
It takes an optional :func:`infer_shape` parameter that must have this It takes an optional :func:`infer_shape` parameter that must have this
......
...@@ -450,7 +450,8 @@ static PyObject *CudaNdarray_NewDims(int nd, const inttype * dims) ...@@ -450,7 +450,8 @@ static PyObject *CudaNdarray_NewDims(int nd, const inttype * dims)
return NULL; return NULL;
} }
}else{ }else{
PyErr_SetString(PyExc_MemoryError, "Failed to the CudaNdarray structure."); PyErr_SetString(PyExc_MemoryError,
"Failed to allocate the CudaNdarray structure.");
} }
return (PyObject*)rval; return (PyObject*)rval;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论