add validation tests for softmax, resize, split, gather
This commit is contained in:
@@ -85,6 +85,36 @@ python3 validation/operations/gen_tests.py
|
||||
| 4D | `sigmoid/4d` | [2,3,4,4] | [2,3,4,4] | Standalone NCHW Sigmoid |
|
||||
| After Gemm | `sigmoid/after_gemm` | [4,64] | [4,32] | Gemm + bias, then Sigmoid |
|
||||
|
||||
## Softmax
|
||||
|
||||
| Test | Directory | Input | Output | Axis | Notes |
|
||||
|--------------|--------------------------|-------------|-------------|------|---------------------------------|
|
||||
| Basic | `softmax/basic` | [3,5] | [3,5] | 1 | Row-wise softmax over features |
|
||||
| 3D last axis | `softmax/3d_last_axis` | [2,3,4] | [2,3,4] | 2 | Last-dimension normalization |
|
||||
| Channel axis | `softmax/channel_axis` | [1,3,2,2] | [1,3,2,2] | 1 | NCHW channel-wise softmax |
|
||||
|
||||
## Resize
|
||||
|
||||
| Test | Directory | Input | Output | Mode | Notes |
|
||||
|---------------------|-------------------------|-----------|-----------|---------|-----------------------------------------|
|
||||
| Nearest 2x | `resize/nearest_2x` | [1,1,2,3] | [1,1,4,6] | nearest | NCHW upsampling with scales [1,1,2,2] |
|
||||
| Non-uniform scales | `resize/non_uniform` | [1,1,2,3] | [1,1,6,6] | nearest | Different height/width scaling factors |
|
||||
| Explicit sizes | `resize/with_sizes` | [1,1,2,3] | [1,1,3,5] | nearest | Sizes input used instead of scales |
|
||||
|
||||
## Split
|
||||
|
||||
| Test | Directory | Input | Outputs | Axis | Notes |
|
||||
|-----------------|---------------------------|-------|----------------------|------|-------------------------------------|
|
||||
| Basic | `split/basic` | [2,6] | [2,2], [2,4] | 1 | Two-way split with explicit sizes |
|
||||
| Equal three-way | `split/equal_three_way` | [2,6] | [2,2], [2,2], [2,2] | 1 | Optional split input omitted |
|
||||
|
||||
## Gather
|
||||
|
||||
| Test | Directory | Input | Indices | Output | Axis | Notes |
|
||||
|----------------------|--------------------------------|-------|---------|----------|------|--------------------------------|
|
||||
| Axis 1 | `gather/axis1` | [3,4] | [2] | [3,2] | 1 | Select two columns |
|
||||
| Axis 0 matrix indices| `gather/axis0_matrix_indices` | [4,3] | [2,2] | [2,2,3] | 0 | Gather rows with 2D indices |
|
||||
|
||||
## Add
|
||||
|
||||
| Test | Directory | Input(s) | Output | Notes |
|
||||
|
||||
Reference in New Issue
Block a user