Skip to content

Commit

Permalink
Merge pull request cleverhans-lab#249 from fartashf/master
Browse files Browse the repository at this point in the history
Added the bias to Conv2D in tutorial_mnist_tf
  • Loading branch information
npapernot authored Aug 25, 2017
2 parents 2074864 + 0727cb2 commit aa05444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cleverhans_tutorials/tutorial_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def set_input_shape(self, input_shape):
self.output_shape = tuple(output_shape)

def fprop(self, x):
return tf.nn.conv2d(x, self.kernels,
(1,) + tuple(self.strides) + (1,), self.padding)
return tf.nn.conv2d(x, self.kernels, (1,) + tuple(self.strides) + (1,),
self.padding) + self.b


class ReLU(Layer):
Expand Down

0 comments on commit aa05444

Please sign in to comment.