Tencent / PocketFlow

An Automatic Model Compression (AutoMC) framework for developing smaller and faster AI applications.
https://pocketflow.github.io
Other
2.78k stars 490 forks source link

UnboundLocalError: local variable 'file_path' referenced before assignment #125

Closed dhingratul closed 5 years ago

dhingratul commented 5 years ago

Describe the bug A clear and concise description of what the bug is.

  1. Train Weight Sparsification with 0.01 % epochs
  2. Use the script from tutorial to convert it to a .pb file

Error: UnboundLocalError: local variable 'file_path' referenced before assignment

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

jiaxiang-wu commented 5 years ago

@dhingratul The compressed model generated by WeightSparseLearner does not support exporting to TensorFlow Lite, since sparse matrix multiplication is not supported by TensorFlow Lite, as far as I know. Sorry for the confusion.