提交 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,
import distutils.sysconfig
from theano.configparser import config
import numpy.distutils #TODO: TensorType should handle this
import sys
import compilelock # we will abuse the lockfile mechanism when reading and writing the registry
......
......@@ -3046,7 +3046,7 @@ class Rebroadcast(Op):
return '%s{%s}' % (self.__class__.__name__, ','.join(broadcast_pattern))
def make_node(self, x):
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,
broadcastable = [self.axis.get(i, b)
for i, b in enumerate(x.type.broadcastable)])
......
......@@ -50,7 +50,7 @@ class Conv3D(theano.Op):
return "Conv3D"
def c_code_cache_version(self):
return (1,)
return (2,)
def make_node(self, V, W, b, d):
......@@ -109,7 +109,7 @@ class Conv3D(theano.Op):
dCdV.name = 'Conv3D_dCdV.dCdH='+dCdH_name+',V='+V_name
dCdW.name = 'Conv3D_dCdW.dCdH='+dCdH_name+',V='+V_name+',W='+W_name
dCdb.name = 'Conv3D_dCdb.dCdH='+dCdH_name+',V='+V_name+',W='+W_name+',b='+b_name
return [ dCdV, dCdW, dCdb, dCdd ]
......@@ -140,7 +140,7 @@ class Conv3D(theano.Op):
output_dur = T.floor( (vidDur - filterDur) / dt ) +1
rval = (batch_size, output_height, output_width, output_dur, output_channels )
return [ rval ]
......@@ -218,7 +218,7 @@ class Conv3D(theano.Op):
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
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论