op_accuracy_white_list.py 2.3 KB
Newer Older
J
juncaipeng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# For op in NO_FP64_CHECK_GRAD_OP_LIST, the op test requires check_grad with fp64 precision
NO_FP64_CHECK_GRAD_OP_LIST = [
17
    'instance_norm',
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
    'affine_grid',
    'clip',
    'conv2d',
    'conv2d_transpose',
    'conv3d',
    'conv3d_transpose',
    'conv_shift',
    'cos_sim',
    'cudnn_lstm',
    'cvm',
    'data_norm',
    'deformable_conv',
    'deformable_conv_v1',
    'deformable_psroi_pooling',
    'depthwise_conv2d',
    'depthwise_conv2d_transpose',
    'dropout',
    'fused_elemwise_activation',
    'hinge_loss',
    'huber_loss',
    'im2sequence',
    'increment',
    'l1_norm',
    'log_loss',
42
    'logit',
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
    'lrn',
    'margin_rank_loss',
    'match_matrix_tensor',
    'matmul',
    'max_pool2d_with_index',
    'max_pool3d_with_index',
    'minus',
    'modified_huber_loss',
    'nce',
    'pool2d',
    'pool3d',
    'prroi_pool',
    'rank_loss',
    'reduce_max',
    'reduce_min',
    'reshape2',
    'row_conv',
    'scatter',
    'sequence_conv',
    'sequence_pool',
    'sequence_reverse',
    'sequence_slice',
    'sequence_topk_avg_pooling',
    'shuffle_channel',
    'sigmoid',
    'smooth_l1_loss',
    'softmax',
    'spectral_norm',
    'squared_l2_distance',
    'squared_l2_norm',
    'tanh',
    'mish',
    'transpose2',
    'trilinear_interp',
    'trilinear_interp_v2',
    'var_conv_2d',
    'warpctc',
H
Hui Zhang 已提交
80
    'warprnnt',
81 82
    'bilateral_slice',
    'cast',
J
juncaipeng 已提交
83 84
]

85
NO_FP16_CHECK_GRAD_OP_LIST = [
86 87 88 89 90
    'fused_elemwise_activation',
    'pool2d',
    'pool3d',
    'softmax',
    'conv2d_transpose',
J
juncaipeng 已提交
91
]
92 93 94 95 96

NO_FP16_COMPARED_WITH_FP32_OP_LIST = [
    'fake_quantize_moving_average_abs_max',
    'p_norm',
]
97 98 99 100 101 102 103 104


NO_BF16_COMPARED_WITH_FP32_OP_LIST = [
    'unique',
    'fusion_gru',
    'fusion_lstm',
    'dequantize',
]