/aosp_15_r20/external/tensorflow/tensorflow/core/kernels/ |
H A D | quantize_and_dequantize_op_test.cc | 161 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_P() 211 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_P() 213 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_P() 267 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_P() 300 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_F() 356 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_P() 410 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_P() 438 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_F() 467 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_F() 496 test::ExpectTensorNear<float>(expected, *GetOutput(0), 1e-5); in TEST_F() [all …]
|
H A D | debug_ops_test.cc | 303 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 342 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 370 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 443 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 468 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 494 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 521 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 547 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 573 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() 600 test::ExpectTensorNear<double>(expected, *GetOutput(0), 1e-8); in TEST_F() [all …]
|
H A D | fused_batch_norm_op_test.cc | 60 test::ExpectTensorNear<float>(expected, *GetOutput(0), 0.01); in TEST_F() 64 test::ExpectTensorNear<float>(expected_mean, *GetOutput(1), 0.01); in TEST_F() 68 test::ExpectTensorNear<float>(expected_variance, *GetOutput(2), 0.01); in TEST_F() 95 test::ExpectTensorNear<float>(expected, *GetOutput(0), 0.01); in TEST_F() 99 test::ExpectTensorNear<float>(expected_mean, *GetOutput(1), 0.01); in TEST_F() 103 test::ExpectTensorNear<float>(expected_variance, *GetOutput(2), 0.01); in TEST_F() 129 test::ExpectTensorNear<float>(expected, *GetOutput(0), 0.01); in TEST_F() 156 test::ExpectTensorNear<float>(expected, *GetOutput(0), 0.01); in TEST_F() 205 test::ExpectTensorNear<float>(expected_x, *GetOutput(0), 0.01); in TEST_F() 209 test::ExpectTensorNear<float>(expected_scale, *GetOutput(1), 0.01); in TEST_F() [all …]
|
H A D | ragged_tensor_to_tensor_op_test.cc | 109 test::ExpectTensorNear<float>( in TEST_F() 130 test::ExpectTensorNear<float>( in TEST_F() 167 test::ExpectTensorNear<float>( in TEST_F() 203 test::ExpectTensorNear<float>( in TEST_F() 348 test::ExpectTensorNear<float>( in TEST_F() 373 test::ExpectTensorNear<float>( in TEST_F() 400 test::ExpectTensorNear<float>(*GetOutput(0), in TEST_F() 441 test::ExpectTensorNear<float>( in TEST_F()
|
H A D | ragged_gather_op_test.cc | 81 test::ExpectTensorNear<float>( in TEST_F() 105 test::ExpectTensorNear<float>( in TEST_F() 156 test::ExpectTensorNear<float>( in TEST_F() 174 test::ExpectTensorNear<float>(*GetOutput(0), in TEST_F()
|
H A D | spectrogram_op_test.cc | 65 test::ExpectTensorNear<float>( in TEST() 99 test::ExpectTensorNear<float>( in TEST() 137 test::ExpectTensorNear<float>( in TEST()
|
H A D | batch_norm_op_test.cc | 58 test::ExpectTensorNear<float>(expected, *GetOutput(0), 0.01); in TEST_F() 85 test::ExpectTensorNear<Eigen::half>(expected, *GetOutput(0), 0.1); in TEST_F()
|
H A D | quantized_activation_ops_test.cc | 66 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TEST_F() 97 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TEST_F()
|
H A D | quantized_pooling_ops_test.cc | 80 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TEST_F() 125 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TEST_F()
|
H A D | quantized_concat_op_test.cc | 115 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TestSmall8Bit() 181 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TestSmall32Bit() 243 test::ExpectTensorNear<float>(expected_float, output_float, 1.0); in TestSecondDim8Bit()
|
H A D | quantized_bias_add_op_test.cc | 87 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TEST_F() 169 test::ExpectTensorNear<float>(expected_float, output_float, 20.0); in TEST_F()
|
H A D | quantized_batch_norm_op_test.cc | 130 test::ExpectTensorNear<float>(expected_float, output_float, 0.1); in TEST_F() 237 test::ExpectTensorNear<float>(expected_float, output_float, 0.1); in TEST_F()
|
/aosp_15_r20/external/tensorflow/tensorflow/core/kernels/image/ |
H A D | colorspace_op_test.cc | 82 test::ExpectTensorNear<T>(expected, *GetOutput(0), 1e-6); in CheckRedMax() 96 test::ExpectTensorNear<T>(expected, *GetOutput(0), 1e-6); in CheckGreenMax() 110 test::ExpectTensorNear<T>(expected, *GetOutput(0), 1e-6); in CheckBlueMax() 123 test::ExpectTensorNear<T>(expected, *GetOutput(0), 1e-6); in CheckNegativeDifference() 179 test::ExpectTensorNear<T>(expected, *GetOutput(0), 1e-6); in CheckRedMax() 194 test::ExpectTensorNear<T>(expected, *GetOutput(0), 1e-6); in CheckGreenMax() 209 test::ExpectTensorNear<T>(expected, *GetOutput(0), 1e-6); in CheckBlueMax() 223 test::ExpectTensorNear<T>(expected, *GetOutput(0), 1e-6); in CheckNegativeDifference()
|
/aosp_15_r20/external/tensorflow/tensorflow/tools/graph_transforms/ |
H A D | quantize_weights_test.cc | 110 test::ExpectTensorNear<float>(original_outputs[0], quantized_outputs[0], in TestQuantizeWeights() 150 test::ExpectTensorNear<float>( in TEST_F() 152 test::ExpectTensorNear<float>( in TEST_F() 156 test::ExpectTensorNear<float>( in TEST_F() 158 test::ExpectTensorNear<float>( in TEST_F()
|
H A D | fold_batch_norms_test.cc | 83 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFoldBatchNormsConv2D() 134 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFoldBatchNormsDepthwiseConv2dNative() 195 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFoldBatchNormsConv2DShared() 196 test::ExpectTensorNear<float>(original_outputs[1], fused_outputs[1], 1e-5); in TestFoldBatchNormsConv2DShared() 242 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFoldBatchNormsMatMul()
|
H A D | sparsify_gather_test.cc | 222 test::ExpectTensorNear<float>( in TestSinglePartition() 242 test::ExpectTensorNear<float>( in TestSinglePartition() 444 test::ExpectTensorNear<float>( in TestMultiPartition() 465 test::ExpectTensorNear<float>( in TestMultiPartition() 493 test::ExpectTensorNear<float>( in TestMultiPartition() 514 test::ExpectTensorNear<float>( in TestMultiPartition()
|
H A D | fuse_convolutions_test.cc | 92 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFuseResizePadAndConv() 142 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFuseResizeAndConv() 194 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFusePadAndConv()
|
H A D | fold_old_batch_norms_test.cc | 117 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFoldOldBatchNorms() 195 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFoldOldBatchNormsAfterDepthwiseConv2dNative() 272 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 2e-5); in TestFoldFusedBatchNorms() 542 test::ExpectTensorNear<float>(original_outputs[0], fused_outputs[0], 1e-5); in TestFoldFusedBatchNormsWithBatchToSpace()
|
/aosp_15_r20/external/tensorflow/tensorflow/core/grappler/optimizers/ |
H A D | arithmetic_optimizer_test.cc | 154 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() 217 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() 249 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() 278 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() 333 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() 344 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() 389 test::ExpectTensorNear<float>(tensors[0], tensors_expected[0], 1e-6); in TEST_F() 452 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() 515 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() 558 test::ExpectTensorNear<float>(result[0], expected[0], 1e-6); in TEST_F() [all …]
|
H A D | common_subgraph_elimination_test.cc | 96 test::ExpectTensorNear<double>(tensors[0], tensors_expected[0], 1e-6); in TEST_F() 135 test::ExpectTensorNear<double>(tensors[0], tensors_expected[0], 1e-6); in TEST_F() 174 test::ExpectTensorNear<float>(tensors[0], tensors_expected[0], 1e-6); in TEST_F()
|
H A D | constant_folding_test.cc | 985 test::ExpectTensorNear<float>(tensors_expected[i], tensors[i], 1e-6); in TEST_F() 1137 test::ExpectTensorNear<float>(expected_tensors[i], tensors[i], 1e-5); in TEST_F() 1203 test::ExpectTensorNear<float>(expected_tensors[0], tensors[0], 1e-5); in TEST_F() 1859 test::ExpectTensorNear<float>(tensors_expected[1], tensors[1], 1e-5); in TEST_F() 1869 test::ExpectTensorNear<float>(tensors_expected[1], tensors[1], 1e-5); in TEST_F() 1945 test::ExpectTensorNear<float>(tensors_expected[1], tensors[1], 1e-5); in TEST_F() 1955 test::ExpectTensorNear<float>(tensors_expected[1], tensors[1], 1e-5); in TEST_F() 2105 test::ExpectTensorNear<float>(tensors_expected[0], tensors[0], 1e-5); in TEST_F() 2155 test::ExpectTensorNear<float>(tensors_expected[0], tensors[0], 1e-5); in TEST_F() 2238 test::ExpectTensorNear<float>(tensors_expected[i], tensors[i], 1e-5); in TEST_F() [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/core/kernels/mkl/ |
H A D | mkl_dequantize_op_test.cc | 53 test::ExpectTensorNear<float>(expected, output, 0.1); in TEST_F() 94 test::ExpectTensorNear<float>(expected, *GetOutput(0), 0.1); in TEST_F()
|
H A D | mkl_quantized_pooling_ops_test.cc | 90 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TEST_F() 146 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TEST_F()
|
H A D | mkl_quantized_concat_op_test.cc | 122 test::ExpectTensorNear<float>(expected_float, output_float, 0.2); in TestSmall8Bit() 189 test::ExpectTensorNear<float>(expected_float, output_float, 1.0); in TestSecondDim8Bit()
|
/aosp_15_r20/external/tensorflow/tensorflow/cc/framework/ |
H A D | cc_ops_test.cc | 115 test::ExpectTensorNear<float>( in TEST() 142 test::ExpectTensorNear<float>(out[0], test::AsTensor<float>({42.0f}, {}), in TEST() 150 test::ExpectTensorNear<float>(out[0], test::AsTensor<float>({1.0f}, {}), in TEST()
|