gmalivenko / pytorch2keras

PyTorch to Keras model convertor
https://pytorch2keras.readthedocs.io/en/latest/
MIT License
858 stars 143 forks source link

fix flatten issue in converted tensorflowjs model #77

Open ShuangLiu1992 opened 5 years ago

ShuangLiu1992 commented 5 years ago

explicitly set the size to match the input instead of using -1, so that tensorflowjs won't complain about shape mismatch [None, actual_size]