|
|
|
|
@ -14,40 +14,28 @@
|
|
|
|
|
|
|
|
|
|
# For op in NO_FP64_CHECK_GRAD_OP_LIST, the op test requires check_grad with fp64 precision
|
|
|
|
|
NO_FP64_CHECK_GRAD_OP_LIST = [
|
|
|
|
|
'abs', 'acos', 'add_position_encoding', 'affine_grid', 'asin', 'atan',
|
|
|
|
|
'bilinear_interp', 'bilinear_tensor_product', 'brelu', 'center_loss',
|
|
|
|
|
'clip', 'concat', 'conv2d', 'conv2d_transpose', 'conv3d',
|
|
|
|
|
'conv3d_transpose', 'conv_shift', 'cos', 'cos_sim', 'crop', 'crop_tensor',
|
|
|
|
|
'cross_entropy', 'cross_entropy2', 'cudnn_lstm', 'cvm', 'data_norm',
|
|
|
|
|
'deformable_conv', 'deformable_conv_v1', 'deformable_psroi_pooling',
|
|
|
|
|
'depthwise_conv2d', 'depthwise_conv2d_transpose', 'dropout',
|
|
|
|
|
'elementwise_add', 'elementwise_div', 'elementwise_max', 'elementwise_min',
|
|
|
|
|
'elementwise_mul', 'elementwise_pow', 'elementwise_sub', 'elu', 'exp',
|
|
|
|
|
'expand', 'flatten', 'flatten2', 'fused_elemwise_activation',
|
|
|
|
|
'fused_embedding_seq_pool', 'gather', 'gather_nd', 'gelu', 'grid_sampler',
|
|
|
|
|
'group_norm', 'hard_shrink', 'hard_sigmoid', 'hard_swish',
|
|
|
|
|
'hierarchical_sigmoid', 'hinge_loss', 'huber_loss', 'im2sequence',
|
|
|
|
|
'increment', 'kldiv_loss', 'l1_norm', 'leaky_relu', 'lod_reset', 'log',
|
|
|
|
|
'log_loss', 'logsigmoid', 'lookup_table', 'lookup_table_v2', 'lrn',
|
|
|
|
|
'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', 'elementwise_max',
|
|
|
|
|
'fused_elemwise_activation', 'hierarchical_sigmoid', 'hinge_loss',
|
|
|
|
|
'huber_loss', 'im2sequence', 'increment', 'l1_norm', 'log_loss', 'lrn',
|
|
|
|
|
'margin_rank_loss', 'match_matrix_tensor', 'matmul',
|
|
|
|
|
'max_pool2d_with_index', 'max_pool3d_with_index', 'maxout', 'mean', 'minus',
|
|
|
|
|
'modified_huber_loss', 'mul', 'multiplex', 'nce', 'nearest_interp', 'pad',
|
|
|
|
|
'pad2d', 'pad_constant_like', 'pixel_shuffle', 'pool2d', 'pool3d', 'pow',
|
|
|
|
|
'prelu', 'prroi_pool', 'psroi_pool', 'rank_loss', 'reciprocal',
|
|
|
|
|
'reduce_max', 'reduce_min', 'relu', 'relu6', 'reshape2', 'reverse',
|
|
|
|
|
'roi_align', 'roi_perspective_transform', 'roi_pool', 'row_conv', 'rsqrt',
|
|
|
|
|
'scale', 'scatter', 'scatter_nd_add', 'seed', 'selu', 'sequence_concat',
|
|
|
|
|
'sequence_conv', 'sequence_expand', 'sequence_expand_as', 'sequence_pad',
|
|
|
|
|
'sequence_pool', 'sequence_reshape', 'sequence_reverse', 'sequence_scatter',
|
|
|
|
|
'sequence_slice', 'sequence_softmax', 'sequence_topk_avg_pooling',
|
|
|
|
|
'sequence_unpad', 'shuffle_channel', 'sigmoid',
|
|
|
|
|
'sigmoid_cross_entropy_with_logits', 'sigmoid_focal_loss', 'sign', 'sin',
|
|
|
|
|
'slice', 'smooth_l1_loss', 'soft_relu', 'softmax', 'softshrink', 'softsign',
|
|
|
|
|
'space_to_depth', 'spectral_norm', 'split', 'spp', 'sqrt', 'square',
|
|
|
|
|
'squared_l2_distance', 'squared_l2_norm', 'squeeze', 'squeeze2', 'stack',
|
|
|
|
|
'stanh', 'strided_slice', 'swish', 'tanh', 'tanh_shrink',
|
|
|
|
|
'teacher_student_sigmoid_loss', 'temporal_shift', 'thresholded_relu',
|
|
|
|
|
'transpose2', 'tree_conv', 'trilinear_interp', 'unfold', 'unpool',
|
|
|
|
|
'unsqueeze', 'unsqueeze2', 'unstack', 'var_conv_2d', 'warpctc',
|
|
|
|
|
'yolov3_loss'
|
|
|
|
|
'max_pool2d_with_index', 'max_pool3d_with_index', 'maxout', 'minus',
|
|
|
|
|
'modified_huber_loss', 'mul', 'nce', 'pad', 'pad2d', 'pad_constant_like',
|
|
|
|
|
'pool2d', 'pool3d', 'prelu', 'prroi_pool', 'rank_loss', 'reduce_max',
|
|
|
|
|
'reduce_min', 'relu', 'reshape2', 'roi_perspective_transform', 'row_conv',
|
|
|
|
|
'scale', 'scatter', 'sequence_conv', 'sequence_pool', 'sequence_reverse',
|
|
|
|
|
'sequence_slice', 'sequence_topk_avg_pooling', 'shuffle_channel', 'sigmoid',
|
|
|
|
|
'smooth_l1_loss', 'softmax', 'spectral_norm', 'spp', 'sqrt',
|
|
|
|
|
'squared_l2_distance', 'squared_l2_norm', 'tanh', 'transpose2',
|
|
|
|
|
'trilinear_interp', 'var_conv_2d', 'warpctc'
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
NO_CHECK_GRAD_OP_LIST = [
|
|
|
|
|
'cudnn_lstm', 'elementwise_div', 'elementwise_mul', 'elementwise_pow',
|
|
|
|
|
'expand', 'fused_elemwise_activation', 'increment', 'match_matrix_tensor',
|
|
|
|
|
'mul', 'pool2d', 'pool3d', 'relu', 'sigmoid', 'softmax', 'sqrt', 'tanh',
|
|
|
|
|
'transpose2', 'var_conv_2d'
|
|
|
|
|
]
|
|
|
|
|
|