Skip to content

Commit 993735d

Browse files
committed
test fix for rebase
Signed-off-by: Ryan Nett <[email protected]>
1 parent bafbb3c commit 993735d

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

ndarray/src/main/java/org/tensorflow/ndarray/index/Slice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private long end(Dimension dim){
5757
this.end = end;
5858
this.stride = stride;
5959

60-
if(stride != 0){
60+
if(stride == 0){
6161
throw new IllegalArgumentException("Can not have a stride of 0");
6262
}
6363
}

tensorflow-core/tensorflow-core-api/src/test/java/org/tensorflow/IndexTest.java renamed to ndarray/src/test/java/org/tensorflow/ndarray/IndexTest.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
/* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
1+
/*
2+
Copyright 2020 The TensorFlow Authors. All Rights Reserved.
23
3-
Licensed under the Apache License, Version 2.0 (the "License");
4-
you may not use this file except in compliance with the License.
5-
You may obtain a copy of the License at
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
67
7-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
89
9-
Unless required by applicable law or agreed to in writing, software
10-
distributed under the License is distributed on an "AS IS" BASIS,
11-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
See the License for the specific language governing permissions and
13-
limitations under the License.
14-
==============================================================================*/
15-
package org.tensorflow;
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
==============================================================================
16+
*/
17+
package org.tensorflow.ndarray;
1618

1719
import static org.junit.jupiter.api.Assertions.assertTrue;
1820

19-
import org.junit.Test;
21+
import org.junit.jupiter.api.Test;
2022
import org.tensorflow.ndarray.index.Indices;
2123

2224
public class IndexTest {

0 commit comments

Comments
 (0)