question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Sorry, the first time in GitHub] Hi, I used Netron to see and export the binarized parameters and I see that the parameters aren’t. In the attached file you can see what I mean. So, the parameters shouldn’t be only +1 and -1? Why is this happening?

The layer:

kwargs = dict(
    kernel_quantizer=lq.quantizers.SteSign(clip_value=1.0),
    kernel_constraint="weight_clip",
    padding="same"
)

activation = 'ste_sign'

x = tf.keras.Input(shape=(1, Time_series_length, 1))
ConvL1 = lq.layers.QuantConv2D(128, (1, 8), use_bias=False, **kwargs)(x)
ConvL1 = tf.keras.layers.BatchNormalization(scale=False)(ConvL1)
ConvL1 = tf.keras.layers.Activation(activation)(ConvL1)

image

In the image, you can see the parameters of the layer.

TensorFlow version: 2.0.0 Larq version: 0.8.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
AlexRuxcommented, Dec 18, 2019

For now, until our TFLite inference implementation is ready, you could apply this quantization rule yourself as preprocessing when you’re uploading the weights to the machine.

Oh, perfect. A Matlab script and I’m ready to go.

  1. Use an optimizer like Bop which doesn’t rely on latent weights
  2. Install larq from GitHub master and use the experimental quantization_scope API. Note that the details might change before the 0.9 release, but I’ll update this issue if the API changes.

Thank you both. I’ll try.

1reaction
lgeigercommented, Dec 18, 2019

Great! Feel free to reopen if you have more questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export weights | Maya 2022
When you smooth skin a surface, Maya creates one weight map per joint. The Export Weight Maps menu item lets you export all...
Read more >
Export and Import Weights
There's the option of exporting the weight maps using the Export Skin Weight Map tool found under the Skin menu. This has existed...
Read more >
Maya Has Two Ways to Export Skin Weights. Which Do ...
In Maya, you have the option to export skin weights and re-import them as if nothing ever happened. The thing is, there are...
Read more >
Exporting skin weights in Maya
In the past Maya has had terrible export tools for skinned meshes and they were called ” Export Skin Weight Maps ” and...
Read more >
Weight of U.S. Exports to and Imports from Canada and ...
The U.S. Department of Transportation, Bureau of Transportation Statistics estimated the weight of exports for truck, rail, pipeline, and other modes using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found