Skip to content

Commit

Permalink
add diagram for gating feature
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Jan 16, 2021
1 parent 25dee85 commit 172985a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,8 @@ logits3, mems3 = model_xl(seg3, mems = mems2, return_mems = True)

### Gated residual

<img src="./images/gating.png" width="500px"></img>

The authors propose gating the residual connections in the transformer network and demonstrate increased stability and performance for Transformer-XL in a variety of reinforcement learning tasks.

```python
Expand Down
Binary file added images/gating.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 172985a

Please sign in to comment.