@Test
public void fillSpatialBorder() {

	for( boolean subtensor : new boolean[]{false,true}) {
		int C = 3;
		int H = 13;
		int W = 18;
		double value = 2.3;
		int borderX0 = 2, borderY0 = 1;
		int borderX1 = 3, borderY1 = 4;
		int[] coor = new int[]{2,0,0,0};
		Tensor_F64 T = TensorFactory_F64.random(rand, subtensor,5, C, H, W);
		TensorOps_F64.fillSpatialBorder(T,coor,borderY0,borderX0,borderY1,borderX1,value);
		checkBorder(T,2,borderY0,borderX0,borderY1,borderX1, value);
		// see if it ignores the last parts of the coordinate
		coor = new int[]{2,10,2,12};
		T = TensorFactory_F64.random(rand, subtensor,5, C, H, W);
		TensorOps_F64.fillSpatialBorder(T,coor,borderY0,borderX0,borderY1,borderX1,value);
		checkBorder(T,2,borderY0,borderX0,borderY1,borderX1, value);
	}
}