Update Slice test to expose more issues with slice implementation
@@ -154,7 +154,7 @@ public class SliceVertexTest {
@Test
public void changesMatchGradient() {
DoubleVertex cube = new UniformVertex(new int[]{2, 2, 2}, -10.0, 10.0);
- SliceVertex slice = new SliceVertex(cube, 0, 0);
+ SliceVertex slice = new SliceVertex(cube, 2, 0);
finiteDifferenceMatchesGradient(ImmutableList.of(cube), slice, 10.0, 1e-10, true);
}
