Discussion:
[theano-users] How can I calculate the size of output of convolutional operation in theano?
Sunjeet Jena
2017-06-26 19:36:21 UTC
Permalink
Is there any way I can calculate the size of the output after the
Convolution Operation?
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sym
2017-06-28 17:34:56 UTC
Permalink
You should check this out
http://deeplearning.net/software/theano_versions/dev/tutorial/conv_arithmetic.html

The output size is in general o = (i - r + 2p)/s + 1 where i is the input
size, o the output size, r the filter size, p the padding and s the stride
of the convolution. This formula holds for every dimension (so for a 2D
convolution, if the strides, padding, filters, etc.. are different you can
apply this formula separately)
Post by Sunjeet Jena
Is there any way I can calculate the size of the output after the
Convolution Operation?
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Pascal Lamblin
2017-07-01 00:13:16 UTC
Permalink
Post by Sunjeet Jena
Is there any way I can calculate the size of the output after the
Convolution Operation?
You can check theano.tensor.nnet.abstract_conv.get_conv_output_shape()
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...