Skip to content
Open
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 questions/85_positional-encoding-calculator/example.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"input": "position = 2, d_model = 8",
"reasoning": "The function computes the positional encoding by calculating sine values for even indices and cosine values for odd indices, ensuring that the encoding provides the required positional information.",
"output": "[[[ 0.,0.,0.,0.,1.,1.,1.,1.,]\n [ 0.8413,0.0998,0.01,0.001,0.5405,0.995,1.,1.]]]"
"output": "[[0. , 1. , 0. , 1. , 0. , 1. , 0. , 1. ]\n [0.8413 , 0.5405 , 0.09985, 0.995 , 0.01 , 1. , 0.001 , 1. ]]"
}