Skip to content

Commit

Permalink
[scripts] Fix bug introduced in #2957, RE integer division (#2986)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarora8 authored and danpovey committed Jan 11, 2019
1 parent ff6ddf7 commit 9b6fbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion egs/wsj/s5/steps/libs/nnet3/xconfig/convolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def set_derived_configs(self):
if input_dim % height_in != 0:
raise RuntimeError("Input dimension {0} is not a multiple of height-in={1}".format(
input_dim, height_in))
self.config['num-filters-in'] = input_dim / height_in
self.config['num-filters-in'] = input_dim // height_in


# Check whether 'str' is a sorted, unique, nonempty list of integers, like -1,0,1.,
Expand Down

0 comments on commit 9b6fbdd

Please sign in to comment.