microsoft / nnfusion

A flexible and efficient deep neural network (DNN) compiler that generates high-performance executable from a DNN model description.
MIT License
937 stars 157 forks source link

Check and fix operators: AvgPool, GlobalAvgPool, MaxPool, GlobalMaxPool, Greater, GreaterOrEqual, Less, LessOrEqual, Identity, InstanceNorm, LSTM, LayerNorm, LeakyRelu, Log, LogSoftmax, MatMul, Size, Reciprocal #486

Closed xysmlx closed 1 year ago

xysmlx commented 1 year ago

TODO: merge latest PRs and re-run tests

Failed test cases: test_logsoftmax_large_number_expanded (--float_as_half failed) test_logsoftmax_large_number (--float_as_half failed) test_lstm_batchwise test_lstm_with_peepholes test_averagepool_2d_ceil test_maxpool_with_argmax_2d_precomputed_strides test_maxpool_2d_dilations test_maxpool_with_argmax_2d_precomputed_pads test_maxpool_2d_ceil test_maxpool_2d_uint8 test_leakyrelu_default_expanded test_leakyrelu_expanded test_leakyrelu_example_expanded test_identity_sequence test_identity_opt test_layer_normalization_4d_axis1_expanded test_layer_normalization_3d_axis2_epsilon_expanded test_layer_normalization_4d_axis_negative_2_expanded test_layer_normalization_2d_axis0_expanded test_layer_normalization_2d_axis1_expanded test_layer_normalization_2d_axis_negative_2_expanded test_layer_normalization_3d_axis_negative_2_epsilon_expanded test_layer_normalization_4d_axis_negative_3_expanded test_layer_normalization_4d_axis2_expanded test_layer_normalization_4d_axis0_expanded test_layer_normalization_4d_axis3_expanded test_layer_normalization_default_axis_expanded test_layer_normalization_3d_axis0_epsilon_expanded test_layer_normalization_3d_axis_negative_3_epsilon_expanded test_layer_normalization_2d_axis_negative_1_expanded test_layer_normalization_4d_axis_negative_4_expanded test_layer_normalization_3d_axis_negative_1_epsilon_expanded test_layer_normalization_4d_axis_negative_1_expanded test_layer_normalization_3d_axis1_epsilon_expanded

Passed test cases: test_averagepool_2d_precomputed_pads test_averagepool_2d_strides test_averagepool_2d_pads_count_include_pad test_averagepool_2d_precomputed_pads_count_include_pad test_averagepool_3d_default test_averagepool_2d_precomputed_strides test_averagepool_2d_same_upper test_averagepool_2d_default test_averagepool_2d_same_lower test_averagepool_2d_precomputed_same_upper test_averagepool_2d_pads test_averagepool_1d_default test_globalaveragepool test_globalaveragepool_precomputed test_globalmaxpool test_globalmaxpool_precomputed test_greater test_greater_bcast test_greater_equal test_greater_equal_bcast test_greater_equal_bcast_expanded test_greater_equal_expanded test_identity test_layer_normalization_2d_axis_negative_1 test_layer_normalization_2d_axis_negative_2 test_layer_normalization_2d_axis0 test_layer_normalization_2d_axis1 test_layer_normalization_3d_axis_negative_1_epsilon test_layer_normalization_3d_axis_negative_2_epsilon test_layer_normalization_3d_axis_negative_3_epsilon test_layer_normalization_3d_axis0_epsilon test_layer_normalization_3d_axis1_epsilon test_layer_normalization_3d_axis2_epsilon test_layer_normalization_4d_axis_negative_1 test_layer_normalization_4d_axis_negative_2 test_layer_normalization_4d_axis_negative_3 test_layer_normalization_4d_axis_negative_4 test_layer_normalization_4d_axis0 test_layer_normalization_4d_axis1 test_layer_normalization_4d_axis2 test_layer_normalization_4d_axis3 test_layer_normalization_default_axis test_leakyrelu test_leakyrelu_default test_leakyrelu_example test_less test_less_bcast test_less_equal test_less_equal_bcast test_less_equal_bcast_expanded test_less_equal_expanded test_log test_log_example test_logsoftmax_axis_0 test_logsoftmax_axis_0_expanded test_logsoftmax_axis_1 test_logsoftmax_axis_1_expanded test_logsoftmax_axis_2 test_logsoftmax_axis_2_expanded test_logsoftmax_default_axis test_logsoftmax_default_axis_expanded test_logsoftmax_example_1 test_logsoftmax_example_1_expanded test_logsoftmax_large_number (FP32/64 passed) test_logsoftmax_large_number_expanded (FP32/64 passed) test_logsoftmax_negative_axis test_logsoftmax_negative_axis_expanded test_lstm_defaults test_lstm_with_initial_bias test_matmul_2d test_matmul_3d test_matmul_4d test_maxpool_1d_default test_maxpool_2d_default test_maxpool_2d_pads test_maxpool_2d_precomputed_pads test_maxpool_2d_precomputed_same_upper test_maxpool_2d_precomputed_strides test_maxpool_2d_same_lower test_maxpool_2d_same_upper test_maxpool_2d_strides test_maxpool_3d_default test_reciprocal test_reciprocal_example test_size test_size_example