提交 a0e8767f authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix error messages.

上级 c107d35d
...@@ -106,7 +106,7 @@ int APPLY_SPECIFIC(dnn_pool_grad)(PyGpuArrayObject *inp, ...@@ -106,7 +106,7 @@ int APPLY_SPECIFIC(dnn_pool_grad)(PyGpuArrayObject *inp,
beta = (void *)&betaf; beta = (void *)&betaf;
break; break;
default: default:
PyErr_SetString(PyExc_TypeError, "Unsupported type in pooling"); PyErr_SetString(PyExc_TypeError, "Unsupported type in pooling gradient");
return 1; return 1;
} }
......
...@@ -67,7 +67,7 @@ int APPLY_SPECIFIC(softmax)(PyGpuArrayObject *x, ...@@ -67,7 +67,7 @@ int APPLY_SPECIFIC(softmax)(PyGpuArrayObject *x,
beta = (void *)&betaf; beta = (void *)&betaf;
break; break;
default: default:
PyErr_SetString(PyExc_TypeError, "Unsupported type in pooling"); PyErr_SetString(PyExc_TypeError, "Unsupported type in softmax");
return 1; return 1;
} }
......
...@@ -80,7 +80,7 @@ int APPLY_SPECIFIC(softmax_grad)(PyGpuArrayObject *dy, ...@@ -80,7 +80,7 @@ int APPLY_SPECIFIC(softmax_grad)(PyGpuArrayObject *dy,
beta = (void *)&betaf; beta = (void *)&betaf;
break; break;
default: default:
PyErr_SetString(PyExc_TypeError, "Unsupported type in pooling"); PyErr_SetString(PyExc_TypeError, "Unsupported type in softmax gradient");
return 1; return 1;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论