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

added version 15 support for Shape operator #494

Closed donglinb closed 1 year ago

donglinb commented 1 year ago

Shape operator version 15 added slice over input shape. Unit tests all passed.

@, shape , test_shape_start_negative_1 ,nnfusion_work/test_shape_start_negative_1/test_data_set_0 , PASS
@, shape , test_shape_end_1 ,nnfusion_work/test_shape_end_1/test_data_set_0 , PASS
@, shape , test_shape_clip_end ,nnfusion_work/test_shape_clip_end/test_data_set_0 , PASS
@, shape , test_shape_start_1_end_2 ,nnfusion_work/test_shape_start_1_end_2/test_data_set_0 , PASS
@, shape , test_shape_example ,nnfusion_work/test_shape_example/test_data_set_0 , PASS
@, shape , test_shape_end_negative_1 ,nnfusion_work/test_shape_end_negative_1/test_data_set_0 , PASS
@, shape , test_shape_start_1 ,nnfusion_work/test_shape_start_1/test_data_set_0 , PASS
@, shape , test_shape_clip_start ,nnfusion_work/test_shape_clip_start/test_data_set_0 , PASS
@, shape , test_shape_start_1_end_negative_1 ,nnfusion_work/test_shape_start_1_end_negative_1/test_data_set_0 , PASS
@, shape , test_shape ,nnfusion_work/test_shape/test_data_set_0 , PASS
donglinb commented 1 year ago

Fixed Slice operator. 7 unit tests passed and 1 failed due to output shape being (20,0,5).

@, slice , test_slice_neg ,/home/shared/nnfusion/test/python/../../build/onnx/onnx/backend/test/data/node/test_slice_neg/test_data_set_0 , PASS
@, slice , test_slice_default_steps ,/home/shared/nnfusion/test/python/../../build/onnx/onnx/backend/test/data/node/test_slice_default_steps/test_data_set_0 , PASS
@, slice , test_slice_default_axes ,/home/shared/nnfusion/test/python/../../build/onnx/onnx/backend/test/data/node/test_slice_default_axes/test_data_set_0 , PASS
@, slice , test_slice_start_out_of_bounds , BUILD ERROR , FAILED
@, slice , test_slice_end_out_of_bounds ,/home/shared/nnfusion/test/python/../../build/onnx/onnx/backend/test/data/node/test_slice_end_out_of_bounds/test_data_set_0 , PASS
@, slice , test_slice_neg_steps ,/home/shared/nnfusion/test/python/../../build/onnx/onnx/backend/test/data/node/test_slice_neg_steps/test_data_set_0 , PASS
@, slice , test_slice ,/home/shared/nnfusion/test/python/../../build/onnx/onnx/backend/test/data/node/test_slice/test_data_set_0 , PASS
@, slice , test_slice_negative_axes ,/home/shared/nnfusion/test/python/../../build/onnx/onnx/backend/test/data/node/test_slice_negative_axes/test_data_set_0 , PASS