Skip to content

Commit

Permalink
Fixed output shape for features
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-lotter committed Jun 15, 2017
1 parent b1d21a8 commit b638a6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prednet.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ def get_output_shape_for(self, input_shape):
out_nb_row = input_shape[self.row_axis] / 2**self.output_layer_num
out_nb_col = input_shape[self.column_axis] / 2**self.output_layer_num
if self.dim_ordering == 'th':
out_shape = (-1, out_stack_size, out_nb_row, out_nb_col)
out_shape = (out_stack_size, out_nb_row, out_nb_col)
else:
out_shape = (-1, out_nb_row, out_nb_col, out_stack_size)
out_shape = (out_nb_row, out_nb_col, out_stack_size)

if self.return_sequences:
return (input_shape[0], input_shape[1]) + out_shape
Expand Down

0 comments on commit b638a6b

Please sign in to comment.