Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkAnJarad authored Jan 12, 2023
1 parent 712d032 commit eb73dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ Computes attention in a feature map across all three dimensions (channel and bot
### Usage

```python
feature_maps = torch.randn(2, 16, 10, 10)
feature_maps = torch.randn(2, 16, 10, 10) # (batch_size, channels, height, width)
triplet_attention = TripletAttention(in_channels=16, height=10, width=10)

triplet_attention(feature_maps) # shape (2, 16, 10, 10); same as input
Expand Down

0 comments on commit eb73dd8

Please sign in to comment.