---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-20-94b720472871> in <module>()
5 conv = cg.conv2d(x_in, cg.constant(w_in), receptive_field_size=4, filters_number=3, stride=2, padding=0)
6 ctx = SimulationContext()
----> 7 ctx.forward(cg)
8 plt.imshow(ctx[conv].value[0, 0, :].reshape(13, 13, 3), cmap='gray')
/Users/kirill/documents/projects/DeepLearningToy/src/pydeeptoy/simulation.py in forward(self, cg, params, out)
57
58 for node in self.sort_topologically(cg, out):
---> 59 node.forward(self)
60
61 def backward(self, cg: ComputationalGraph, reset_gradient=True, out=list()):
/Users/kirill/documents/projects/DeepLearningToy/src/pydeeptoy/nodes.py in forward(self, data_bag)
312 assert (w - f + 2 * p) % s == 0
313
--> 314 output_width = (w - f + 2 * p) / s + 1
315 output_height = (h - f + 2 * p) / s + 1
316 return output_width, output_height
IndexError: tuple index out of range