third_party/NNPACK/test/convolution-output/smoke.cc
TEST(FT8x8, implicit_padding) {
	ConvolutionTester tester;
	tester.inputSize(8, 8)
		.kernelSize(5, 5)
		.iterations(5)
		.errorLimit(5.0e-2);
	for (size_t paddingTop = 0; paddingTop < tester.kernelHeight(); paddingTop++) {
		for (size_t paddingRight = 0; paddingRight < tester.kernelWidth(); paddingRight++) {
			for (size_t paddingLeft = 0; paddingLeft < tester.kernelWidth(); paddingLeft++) {
				for (size_t paddingBottom = 0; paddingBottom < tester.kernelHeight(); paddingBottom++) {
					tester.inputPadding(paddingTop, paddingRight, paddingBottom, paddingLeft)
						.testOutput(nnp_convolution_algorithm_ft8x8);
				}
			}
		}
	}
}
/*
 * Test that the implementation handles implicit padding of input
 */
Test that the implementation handles implicit padding of input
Test that the implementation handles implicit padding of input
TEST(FT8x8, implicit_padding) {
	ConvolutionTester tester;
	tester.inputSize(8, 8)
		.kernelSize(5, 5)
		.iterations(5)
		.errorLimit(5.0e-2);
	for (size_t paddingTop = 0; paddingTop < tester.kernelHeight(); paddingTop++) {
		for (size_t paddingRight = 0; paddingRight < tester.kernelWidth(); paddingRight++) {
			for (size_t paddingLeft = 0; paddingLeft < tester.kernelWidth(); paddingLeft++) {
				for (size_t paddingBottom = 0; paddingBottom < tester.kernelHeight(); paddingBottom++) {
					tester.inputPadding(paddingTop, paddingRight, paddingBottom, paddingLeft)
						.testOutput(nnp_convolution_algorithm_ft8x8);
				}
			}
		}
	}
}
TEST ( FT8x8 , implicit_padding ) { ConvolutionTester tester ; tester . inputSize ( 8 , 8 ) . kernelSize ( 5 , 5 ) . iterations ( 5 ) . errorLimit ( 5.0e-2 ) ; for ( size_t paddingTop = 0 ; paddingTop < tester . kernelHeight ( ) ; paddingTop ++ ) { for ( size_t paddingRight = 0 ; paddingRight < tester . kernelWidth ( ) ; paddingRight ++ ) { for ( size_t paddingLeft = 0 ; paddingLeft < tester . kernelWidth ( ) ; paddingLeft ++ ) { for ( size_t paddingBottom = 0 ; paddingBottom < tester . kernelHeight ( ) ; paddingBottom ++ ) { tester . inputPadding ( paddingTop , paddingRight , paddingBottom , paddingLeft ) . testOutput ( nnp_convolution_algorithm_ft8x8 ) ; } } } } }
Test that the implementation handles implicit padding of input
Test that the implementation handles implicit padding of input