Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

correct typo in add_timing_signal_nd #1651

Merged
merged 1 commit into from
Jul 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tensor2tensor/layers/common_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def add_timing_signal_nd(x, min_timescale=1.0, max_timescale=1.0e4):
memory inputs to attention.

The use of relative position is possible because sin(a+b) and cos(a+b) can be
experessed in terms of b, sin(a) and cos(a).
expressed in terms of b, sin(a) and cos(a).

x is a Tensor with n "positional" dimensions, e.g. one dimension for a
sequence or two dimensions for an image
Expand Down