-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added the remaining test cases, covering mean with weights (ignoring …
…index), higher dimension, and no reduction
- Loading branch information
1 parent
2257722
commit 9b11313
Showing
4 changed files
with
215 additions
and
1 deletion.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
src/frontends/onnx/tests/models/softmax_crossentropy_loss_higher_dim.prototxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
ir_version: 7 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
node { | ||
input: "x" | ||
input: "y" | ||
output: "z" | ||
op_type: "SoftmaxCrossEntropyLoss" | ||
attribute { | ||
name: "reduction" | ||
s: "mean" | ||
type: STRING | ||
} | ||
} | ||
name: "test_sce_higher_dim" | ||
input { | ||
name: "x" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { dim_value: 2 } | ||
dim { dim_value: 3 } | ||
dim { dim_value: 2 } | ||
dim { dim_value: 2 } | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "y" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { dim_value: 2 } | ||
dim { dim_value: 2 } | ||
dim { dim_value: 2 } | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "z" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape {} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 13 | ||
} |
70 changes: 70 additions & 0 deletions
70
src/frontends/onnx/tests/models/softmax_crossentropy_loss_mean_weight_ii.prototxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
ir_version: 7 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
node { | ||
input: "x" | ||
input: "y" | ||
input: "w" | ||
output: "z" | ||
op_type: "SoftmaxCrossEntropyLoss" | ||
attribute { | ||
name: "reduction" | ||
s: "mean" | ||
type: STRING | ||
} | ||
attribute { | ||
name: "ignore_index" | ||
i: -1 | ||
type: INT | ||
} | ||
} | ||
name: "test_sce_mean_weight_ii" | ||
input { | ||
name: "x" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { dim_value: 2 } | ||
dim { dim_value: 3 } | ||
dim { dim_value: 2 } | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "y" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { dim_value: 2 } | ||
dim { dim_value: 2 } | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "w" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { dim_value: 3 } | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "z" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape {} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 13 | ||
} |
53 changes: 53 additions & 0 deletions
53
src/frontends/onnx/tests/models/softmax_crossentropy_loss_none.prototxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
ir_version: 7 | ||
producer_name: "OpenVINO ONNX Frontend" | ||
graph { | ||
node { | ||
input: "x" | ||
input: "y" | ||
output: "z" | ||
op_type: "SoftmaxCrossEntropyLoss" | ||
attribute { | ||
name: "reduction" | ||
s: "none" | ||
type: STRING | ||
} | ||
} | ||
name: "test_sce_none" | ||
input { | ||
name: "x" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { dim_value: 2 } | ||
dim { dim_value: 3 } | ||
} | ||
} | ||
} | ||
} | ||
input { | ||
name: "y" | ||
type { | ||
tensor_type { | ||
elem_type: 7 | ||
shape { | ||
dim { dim_value: 2 } | ||
} | ||
} | ||
} | ||
} | ||
output { | ||
name: "z" | ||
type { | ||
tensor_type { | ||
elem_type: 1 | ||
shape { | ||
dim { dim_value: 2 } | ||
} | ||
} | ||
} | ||
} | ||
} | ||
opset_import { | ||
version: 13 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters