提交 35bfcf3b authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix display format of numbers in an error message.

上级 3b78a25c
...@@ -115,7 +115,7 @@ class SoftmaxWithBias(gof.Op): ...@@ -115,7 +115,7 @@ class SoftmaxWithBias(gof.Op):
} }
if ((%(x)s->dimensions[1] != %(b)s->dimensions[0])) if ((%(x)s->dimensions[1] != %(b)s->dimensions[0]))
{ {
PyErr_Format(PyExc_ValueError, "number of columns in x (%%zi) does not match length of b (%%zi)", PyErr_Format(PyExc_ValueError, "number of columns in x (%%ld) does not match length of b (%%ld)",
%(x)s->dimensions[1], %(b)s->dimensions[0]); %(x)s->dimensions[1], %(b)s->dimensions[0]);
%(fail)s; %(fail)s;
} }
...@@ -194,7 +194,7 @@ class SoftmaxWithBias(gof.Op): ...@@ -194,7 +194,7 @@ class SoftmaxWithBias(gof.Op):
@staticmethod @staticmethod
def c_code_cache_version(): def c_code_cache_version():
return (5,) return (6,)
softmax_with_bias = SoftmaxWithBias() softmax_with_bias = SoftmaxWithBias()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论