Skip to content

Commit

Permalink
Fix IndexOutOfBoundsException in the Dot layer (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliabeliaeva authored Apr 19, 2022
1 parent 1f4d678 commit efaa1eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Dot(
var x2 = input[1]
val axes: IntArray = IntArray(2)
val scope: Scope = tf.scope()
for (i in 0..2) {
for (i in 0 until 2) {
if (axis[i] < 0) {
axes[i] = axis[i] % input[i].asOutput().shape().numDimensions()
} else {
Expand Down

0 comments on commit efaa1eb

Please sign in to comment.