You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I knew using pytensor I had a code that was implemented using the old version of pytensor but now pytensor.tensor.nnet and pytensor.tensor.signal does not exits anymore I checked the documentation but it very old and it is based on a on Theano and I can't make this code to work could you please tell me that are the new submodules for pool_2d and conv
frompytensor.tensor.nnetimportconvfrompytensor.tensor.signal.poolimportpool_2d#### Define layer typesclassConvPoolLayer(object):
"""Used to create a combination of a convolutional and a max-pooling layer. A more sophisticated implementation would separate the two, but for our purposes we'll always use them together, and it simplifies the code, so it makes sense to combine them. """# ... rest of the classdefset_inpt(self, inpt, inpt_dropout, mini_batch_size):
self.inpt=inpt.reshape(self.image_shape)
conv_out=conv.conv2d(input=self.inpt, filters=self.w, filter_shape=self.filter_shape, image_shape=self.image_shape)
pooled_out=pool_2d(input=conv_out, ws=self.poolsize, ignore_border=True)
self.output=self.activation_fn(
pooled_out+self.b.dimshuffle('x', 0, 'x', 'x'))
self.output_dropout=self.output# no dropout in the convolutional layers
This are the two calls the code does to the deprecated and old submodules:
I rebased my fork used for the #548 PR, so as a short-term solution you can pip install that fork directly to get back these Ops with pip install git+https://github.com/jessegrabowski/pytensor.git@restore-conv. I recommend you do this in an env that already had pytensor install via conda so that all the necessary BLAS stuff is handled, then use pip to change pytensor version.
If you were interested in helping to actually get this project off the ground, I'd be happy to help you along. I just don't have the free time to focus on this right now (or in the foreseeable future)
Description
Hi I knew using pytensor I had a code that was implemented using the old version of pytensor but now
pytensor.tensor.nnet
andpytensor.tensor.signal
does not exits anymore I checked the documentation but it very old and it is based on a on Theano and I can't make this code to work could you please tell me that are the new submodules forpool_2d
andconv
This are the two calls the code does to the deprecated and old submodules:
The text was updated successfully, but these errors were encountered: