提交 2434799d authored 作者: Ian Goodfellow's avatar Ian Goodfellow

changes to comments

上级 90ddfc45
...@@ -4,6 +4,7 @@ import os, tempfile, StringIO, sys, logging, subprocess, cPickle, atexit, time, ...@@ -4,6 +4,7 @@ import os, tempfile, StringIO, sys, logging, subprocess, cPickle, atexit, time,
import distutils.sysconfig import distutils.sysconfig
from theano.configparser import config from theano.configparser import config
import numpy.distutils #TODO: TensorType should handle this import numpy.distutils #TODO: TensorType should handle this
import sys
import compilelock # we will abuse the lockfile mechanism when reading and writing the registry import compilelock # we will abuse the lockfile mechanism when reading and writing the registry
......
...@@ -3046,7 +3046,7 @@ class Rebroadcast(Op): ...@@ -3046,7 +3046,7 @@ class Rebroadcast(Op):
return '%s{%s}' % (self.__class__.__name__, ','.join(broadcast_pattern)) return '%s{%s}' % (self.__class__.__name__, ','.join(broadcast_pattern))
def make_node(self, x): def make_node(self, x):
if x.ndim <= numpy.max(self.axis.keys()): if x.ndim <= numpy.max(self.axis.keys()):
raise ValueError('Trying to rebroadcast inexistant dimension') raise ValueError('Trying to rebroadcast nonexistant dimension')
t = x.type.__class__(dtype = x.type.dtype, t = x.type.__class__(dtype = x.type.dtype,
broadcastable = [self.axis.get(i, b) broadcastable = [self.axis.get(i, b)
for i, b in enumerate(x.type.broadcastable)]) for i, b in enumerate(x.type.broadcastable)])
......
...@@ -50,7 +50,7 @@ class Conv3D(theano.Op): ...@@ -50,7 +50,7 @@ class Conv3D(theano.Op):
return "Conv3D" return "Conv3D"
def c_code_cache_version(self): def c_code_cache_version(self):
return (1,) return (2,)
def make_node(self, V, W, b, d): def make_node(self, V, W, b, d):
...@@ -218,7 +218,7 @@ class Conv3D(theano.Op): ...@@ -218,7 +218,7 @@ class Conv3D(theano.Op):
if (%(b)s->dimensions[0] != outputChannels) if (%(b)s->dimensions[0] != outputChannels)
{ {
PyErr_Format(PyExc_ValueError, "Conv3D: b adds to a(n) %%li channel output image but the output has %%i channels",%(b)s->dimensions[0],outputChannels); PyErr_Format(PyExc_ValueError, "Conv3D: b adds to a(n) %%ld channel output image but the output has %%d channels",%(b)s->dimensions[0],outputChannels);
%(fail)s %(fail)s
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论