-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KI-48 [core, tfjs] Add SequenceErase tests
- Loading branch information
1 parent
c65cb69
commit 79197c5
Showing
18 changed files
with
73 additions
and
4 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
...nce/inference-core/src/commonTest/kotlin/io/kinference/operators/seq/SequenceEraseTest.kt
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,24 @@ | ||
package io.kinference.operators.seq | ||
|
||
import io.kinference.KITestEngine | ||
import io.kinference.utils.TestRunner | ||
import kotlin.test.Test | ||
|
||
class SequenceEraseTest { | ||
private fun getTargetPath(dirName: String) = "sequence_erase/$dirName/" | ||
|
||
@Test | ||
fun test_sequence_erase_default() = TestRunner.runTest { | ||
KITestEngine.KIAccuracyRunner.runFromResources(getTargetPath("test_sequence_erase_default")) | ||
} | ||
|
||
@Test | ||
fun test_sequence_erase_positive() = TestRunner.runTest { | ||
KITestEngine.KIAccuracyRunner.runFromResources(getTargetPath("test_sequence_erase_positive")) | ||
} | ||
|
||
@Test | ||
fun test_sequence_erase_negative() = TestRunner.runTest { | ||
KITestEngine.KIAccuracyRunner.runFromResources(getTargetPath("test_sequence_erase_negative")) | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
...ce/inference-tfjs/src/jsTest/kotlin/io/kinference/tfjs/operators/seq/SequenceEraseTest.kt
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,24 @@ | ||
package io.kinference.tfjs.operators.seq | ||
|
||
import io.kinference.tfjs.runners.TFJSTestEngine.TFJSAccuracyRunner | ||
import io.kinference.utils.TestRunner | ||
import kotlin.test.Test | ||
|
||
class SequenceEraseTest { | ||
private fun getTargetPath(dirName: String) = "sequence_erase/$dirName/" | ||
|
||
@Test | ||
fun test_sequence_erase_default() = TestRunner.runTest { | ||
TFJSAccuracyRunner.runFromResources(getTargetPath("test_sequence_erase_default")) | ||
} | ||
|
||
@Test | ||
fun test_sequence_erase_positive() = TestRunner.runTest { | ||
TFJSAccuracyRunner.runFromResources(getTargetPath("test_sequence_erase_positive")) | ||
} | ||
|
||
@Test | ||
fun test_sequence_erase_negative() = TestRunner.runTest { | ||
TFJSAccuracyRunner.runFromResources(getTargetPath("test_sequence_erase_negative")) | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...esting/src/commonMain/resources/sequence_erase/test_sequence_erase_default/descriptor.txt
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,2 @@ | ||
test_data_set_0/input_0.pb:ONNX_TYPE:ONNX_SEQUENCE | ||
test_data_set_0/output_0.pb:ONNX_TYPE:ONNX_SEQUENCE |
10 changes: 10 additions & 0 deletions
10
...ls-testing/src/commonMain/resources/sequence_erase/test_sequence_erase_default/model.onnx
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
Binary file added
BIN
+144 Bytes
...ommonMain/resources/sequence_erase/test_sequence_erase_default/test_data_set_0/input_0.pb
Binary file not shown.
Binary file added
BIN
+103 Bytes
...mmonMain/resources/sequence_erase/test_sequence_erase_default/test_data_set_0/output_0.pb
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...sting/src/commonMain/resources/sequence_erase/test_sequence_erase_negative/descriptor.txt
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,3 @@ | ||
test_data_set_0/input_0.pb:ONNX_TYPE:ONNX_SEQUENCE | ||
test_data_set_0/input_1.pb | ||
test_data_set_0/output_0.pb:ONNX_TYPE:ONNX_SEQUENCE |
Binary file added
BIN
+175 Bytes
...s-testing/src/commonMain/resources/sequence_erase/test_sequence_erase_negative/model.onnx
Binary file not shown.
Binary file added
BIN
+144 Bytes
...mmonMain/resources/sequence_erase/test_sequence_erase_negative/test_data_set_0/input_0.pb
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...mmonMain/resources/sequence_erase/test_sequence_erase_negative/test_data_set_0/input_1.pb
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,2 @@ | ||
* | ||
���������Bposition |
Binary file added
BIN
+103 Bytes
...monMain/resources/sequence_erase/test_sequence_erase_negative/test_data_set_0/output_0.pb
Binary file not shown.
3 changes: 3 additions & 0 deletions
3
...sting/src/commonMain/resources/sequence_erase/test_sequence_erase_positive/descriptor.txt
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,3 @@ | ||
test_data_set_0/input_0.pb:ONNX_TYPE:ONNX_SEQUENCE | ||
test_data_set_0/input_1.pb | ||
test_data_set_0/output_0.pb:ONNX_TYPE:ONNX_SEQUENCE |
Binary file added
BIN
+175 Bytes
...s-testing/src/commonMain/resources/sequence_erase/test_sequence_erase_positive/model.onnx
Binary file not shown.
Binary file added
BIN
+144 Bytes
...mmonMain/resources/sequence_erase/test_sequence_erase_positive/test_data_set_0/input_0.pb
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...mmonMain/resources/sequence_erase/test_sequence_erase_positive/test_data_set_0/input_1.pb
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 @@ | ||
*Bposition |
Binary file added
BIN
+103 Bytes
...monMain/resources/sequence_erase/test_sequence_erase_positive/test_data_set_0/output_0.pb
Binary file not shown.