提交 9bc60906 authored 作者: amrithasuresh's avatar amrithasuresh

1.Removed import numpy as N

2.Updated numpy as np
上级 b79e5f2a
from __future__ import absolute_import, print_function, division from __future__ import absolute_import, print_function, division
import numpy as N import numpy as np
from six.moves import xrange from six.moves import xrange
import theano import theano
...@@ -407,7 +407,7 @@ class Conv3D(theano.Op): ...@@ -407,7 +407,7 @@ class Conv3D(theano.Op):
long long Vposl = Vpos; long long Vposl = Vpos;
for (int m = 0; m < filterDur; m++) { for (int m = 0; m < filterDur; m++) {
//H[i,r,c,t,:] += N.dot(W[:,k,l,m,:],V[i,dr*r+k,dc*c+l,dt*t+m,:]) //H[i,r,c,t,:] += np.dot(W[:,k,l,m,:],V[i,dr*r+k,dc*c+l,dt*t+m,:])
//note: changing the weights so that outputChannels and inputChannels were the last two rather than //note: changing the weights so that outputChannels and inputChannels were the last two rather than
...@@ -619,7 +619,7 @@ def computeH(V, W, b, d): ...@@ -619,7 +619,7 @@ def computeH(V, W, b, d):
outputWidth = int((vidWidth - filterWidth) / dy) + 1 outputWidth = int((vidWidth - filterWidth) / dy) + 1
outputDur = int((vidDur - filterDur) / dt) + 1 outputDur = int((vidDur - filterDur) / dt) + 1
H = N.zeros((batchSize, outputHeight, H = np.zeros((batchSize, outputHeight,
outputWidth, outputDur, outputChannels), dtype=V.dtype) outputWidth, outputDur, outputChannels), dtype=V.dtype)
# H[i,j,x,y,t] = b_j + sum_k sum_l sum_m sum_z W[j,z,k,l,m] V[i,z, dx*x+k,dy*y+l,dt*t+m] # H[i,j,x,y,t] = b_j + sum_k sum_l sum_m sum_z W[j,z,k,l,m] V[i,z, dx*x+k,dy*y+l,dt*t+m]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论