model-optimization icon indicating copy to clipboard operation
model-optimization copied to clipboard

add original weight name as prefix for mask and threshold weights

Open christian-steinmeyer opened this issue 2 years ago • 1 comments

If there are multiple prunable weights in a wrapped layer, without this change, the wrapped model cannot be saved to h5 because of duplicate dataset names (the layer has multiple weights called "mask" and "threshold").

There are certainly other ways to solve this issue, but this felt like the most straight forward. Feel free, to improve.

solves #1077

christian-steinmeyer avatar Jun 28 '23 07:06 christian-steinmeyer

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jun 28 '23 07:06 google-cla[bot]