-
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-50 [core, tfjs] Add SequenceLength tests
- Loading branch information
1 parent
b5e5d7d
commit 13566bd
Showing
12 changed files
with
46 additions
and
2 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
19 changes: 19 additions & 0 deletions
19
...ce/inference-core/src/commonTest/kotlin/io/kinference/operators/seq/SequenceLengthTest.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,19 @@ | ||
package io.kinference.operators.seq | ||
|
||
import io.kinference.KITestEngine | ||
import io.kinference.utils.TestRunner | ||
import kotlin.test.Test | ||
|
||
class SequenceLengthTest { | ||
private fun getTargetPath(dirName: String) = "sequence_length/$dirName/" | ||
|
||
@Test | ||
fun test_sequence_length() = TestRunner.runTest { | ||
KITestEngine.KIAccuracyRunner.runFromResources(getTargetPath("test_sequence_length")) | ||
} | ||
|
||
@Test | ||
fun test_sequence_length_empty() = TestRunner.runTest { | ||
KITestEngine.KIAccuracyRunner.runFromResources(getTargetPath("test_sequence_length_empty")) | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
...e/inference-tfjs/src/jsTest/kotlin/io/kinference/tfjs/operators/seq/SequenceLengthTest.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,19 @@ | ||
package io.kinference.tfjs.operators.seq | ||
|
||
import io.kinference.tfjs.runners.TFJSTestEngine.TFJSAccuracyRunner | ||
import io.kinference.utils.TestRunner | ||
import kotlin.test.Test | ||
|
||
class SequenceLengthTest { | ||
private fun getTargetPath(dirName: String) = "sequence_length/$dirName/" | ||
|
||
@Test | ||
fun test_sequence_length() = TestRunner.runTest { | ||
TFJSAccuracyRunner.runFromResources(getTargetPath("test_sequence_length")) | ||
} | ||
|
||
@Test | ||
fun test_sequence_length_empty() = TestRunner.runTest { | ||
TFJSAccuracyRunner.runFromResources(getTargetPath("test_sequence_length_empty")) | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
...tils-testing/src/commonMain/resources/sequence_length/test_sequence_length/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 |
Binary file added
BIN
+126 Bytes
utils/utils-testing/src/commonMain/resources/sequence_length/test_sequence_length/model.onnx
Binary file not shown.
Binary file added
BIN
+144 Bytes
.../src/commonMain/resources/sequence_length/test_sequence_length/test_data_set_0/input_0.pb
Binary file not shown.
Binary file added
BIN
+20 Bytes
...src/commonMain/resources/sequence_length/test_sequence_length/test_data_set_0/output_0.pb
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...esting/src/commonMain/resources/sequence_length/test_sequence_length_empty/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 |
Binary file added
BIN
+126 Bytes
...ls-testing/src/commonMain/resources/sequence_length/test_sequence_length_empty/model.onnx
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
...ommonMain/resources/sequence_length/test_sequence_length_empty/test_data_set_0/input_0.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 @@ | ||
|
||
input_sequence |
Binary file added
BIN
+20 Bytes
...mmonMain/resources/sequence_length/test_sequence_length_empty/test_data_set_0/output_0.pb
Binary file not shown.