Skip to content

Commit

Permalink
Don't wrap None into List.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmalivenko committed Jun 27, 2019
1 parent 52c4160 commit c27f1a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch2keras/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def pytorch_to_keras(
if input_shapes:
logger.warning('Custom shapes isn\'t supported now.')

if not isinstance(input_shapes, list):
if input_shapes and not isinstance(input_shapes, list):
input_shapes = [input_shapes]

if not isinstance(args, list):
Expand Down

0 comments on commit c27f1a1

Please sign in to comment.