Skip to content

Commit

Permalink
Add assertion that filter sizes are equal
Browse files Browse the repository at this point in the history
  • Loading branch information
israelg99 committed Feb 26, 2017
1 parent b9a28ad commit e7b1324
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eva/layers/masked_convolution2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def build(self, input_shape):

self.mask = np.ones(self.W_shape)

assert mask.shape[0] == mask.shape[1]
filter_size = self.mask.shape[0]
filter_center = filter_size / 2

Expand Down

0 comments on commit e7b1324

Please sign in to comment.