Fabrik
Fabrik copied to clipboard
Fix #318: fixed datatype error
Fix #318: Fixed datatype error This fixes the issue #318 Don't throw error when some specific parameters value is edited while model is exported. Checked by again importing the same model showing same values of edited parameters.
Coverage remained the same at 95.442% when pulling 4cb745571f16e55db8cc1e105fe303d958686ffc on Shivanshmundra:floatTonumber into 062db16e28f2e0711910f2cad2ba590a45f7d5cc on Cloud-CV:master.
@Shivanshmundra Thanks for reporting the bug and the fix. But the error seems to persist even after this. Steps to recreate:
- Load ResNet-101 model from the model zoo
- Change value of
moving average fractionin the batch norm layer - Try exporting
@Shivanshmundra it would be better to parse values at the time of layer update. If you need help with update part we can discuss.
@utsavgarg @Ram81 I figured out the error, Actually by default each value is parsed as string.
Now there is exception to parse value as integer but there was no exception for float so I added it and now its working fine.
Have a review.