In tensorflow how can I rescale gradient before it propagates to the next layer?

userqwerty1

I have a gradient entering layer L1 from layer L2_1 and L2_2 at the same time, I need to rescale gradient (L2_1 + L2_2) before it enters L1 by 1/sqrt(2). How can I do this?

My network looks something like this:

                L2_1
               /    \
input -> L0 - L1     L_final
               \    /
                L2_2
Yaroslav Bulatov

You can divide L2_1 and L2_2 output by sqrt(2). That will rescale both activations and backprop. If you want to modify only backprop but not activations, you can use gradient replacement trick from here

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

In tensorflow how can I rescale gradient before it propagates to the next layer?

From Dev

How can I programmatically add a Gradient Layer over an image in Swift?

From Dev

How can I get a image with gradient without blended layer?

From Dev

How Can I Define Only the Gradient for a Tensorflow Subgraph?

From Dev

How to get loss gradient wrt internal layer output in tensorflow 2?

From Dev

How can I stop before reading the next line?

From Dev

Tensorflow -- how can I process in numpy op outputs in py_func gradient?

From Dev

Tensorflow: How can I extract image features from a specific layer of a pre-trained CNN?

From Dev

How can I make first Ajax Get request be finish before I call next one?

From Dev

How can I rotate a linear gradient?

From Dev

How can I bind to a gradient stop WPF

From Dev

How can I create a custom gradient in android?

From Dev

How can I set the UINavigationbar with gradient color?

From Dev

How can I bind to a gradient stop WPF

From Dev

How can I create a custom gradient in android?

From Dev

Android How can i make a gradient of this EditText

From Dev

How can i make gradient sphere on glsl?

From Dev

How can i rescale every column in my data frame to a 0-100 scale? (in r)

From Dev

How can I rescale axis without scaling the image in an image plot with matplotlib?

From Dev

How can i rescale every column in my data frame to a 0-100 scale? (in r)

From Dev

How can I force in javascript to execute a line before moving to next one?

From Dev

How can I make my JavaScript wait 0.5 seconds before running the next statement?

From Dev

How can i wait for a frame to perform an action before the code execute the next line?

From Dev

How can I make my for loop execute tasks completely before going on to the next iteration?

From Dev

How can I force in javascript to execute a line before moving to next one?

From Dev

How can I wait until the previous method returns OK before running the next method in AngularJS / JavaScript

From Dev

How can I call a function before redirecting to the next URL in web2py?

From Dev

How do I get the gradient of the loss at a TensorFlow variable?

From Dev

How can I pass values from Entity Layer to Presentation Layer

Related Related

  1. 1

    In tensorflow how can I rescale gradient before it propagates to the next layer?

  2. 2

    How can I programmatically add a Gradient Layer over an image in Swift?

  3. 3

    How can I get a image with gradient without blended layer?

  4. 4

    How Can I Define Only the Gradient for a Tensorflow Subgraph?

  5. 5

    How to get loss gradient wrt internal layer output in tensorflow 2?

  6. 6

    How can I stop before reading the next line?

  7. 7

    Tensorflow -- how can I process in numpy op outputs in py_func gradient?

  8. 8

    Tensorflow: How can I extract image features from a specific layer of a pre-trained CNN?

  9. 9

    How can I make first Ajax Get request be finish before I call next one?

  10. 10

    How can I rotate a linear gradient?

  11. 11

    How can I bind to a gradient stop WPF

  12. 12

    How can I create a custom gradient in android?

  13. 13

    How can I set the UINavigationbar with gradient color?

  14. 14

    How can I bind to a gradient stop WPF

  15. 15

    How can I create a custom gradient in android?

  16. 16

    Android How can i make a gradient of this EditText

  17. 17

    How can i make gradient sphere on glsl?

  18. 18

    How can i rescale every column in my data frame to a 0-100 scale? (in r)

  19. 19

    How can I rescale axis without scaling the image in an image plot with matplotlib?

  20. 20

    How can i rescale every column in my data frame to a 0-100 scale? (in r)

  21. 21

    How can I force in javascript to execute a line before moving to next one?

  22. 22

    How can I make my JavaScript wait 0.5 seconds before running the next statement?

  23. 23

    How can i wait for a frame to perform an action before the code execute the next line?

  24. 24

    How can I make my for loop execute tasks completely before going on to the next iteration?

  25. 25

    How can I force in javascript to execute a line before moving to next one?

  26. 26

    How can I wait until the previous method returns OK before running the next method in AngularJS / JavaScript

  27. 27

    How can I call a function before redirecting to the next URL in web2py?

  28. 28

    How do I get the gradient of the loss at a TensorFlow variable?

  29. 29

    How can I pass values from Entity Layer to Presentation Layer

HotTag

Archive