Skip to content

Commit

Permalink
Fix:
Browse files Browse the repository at this point in the history
- Remove LSA parameters from parameters dict when the sanity check for block_id_and_param_type fails and lsa is disabled
  • Loading branch information
phaase-hhi committed Dec 16, 2022
1 parent da45cfc commit cf7ce60
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ source env/bin/activate

**Note**: For further information on how to set up a virtual python environment (also on **Windows**) refer to https://docs.python.org/3/library/venv.html .

When successfully installed, the software outputs the line : "Successfully installed NNC-0.1.1"
When successfully installed, the software outputs the line : "Successfully installed NNC-0.1.2"

### Importing the main module

Expand Down
3 changes: 3 additions & 0 deletions nnc/compression.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ def compress_model( model_path_or_object,
if model_executer:
model_executer.model = model_executer.original_model
del model_executer.original_model
for key in model_parameters.keys():
if "weight_scaling" in key:
del model_parameters[key]


bitstream = compress( model_parameters,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from setuptools.command.build_ext import build_ext
import setuptools

__version__ = '0.1.1'
__version__ = '0.1.2'


class get_pybind_include(object):
Expand Down

0 comments on commit cf7ce60

Please sign in to comment.