Skip to content

Commit

Permalink
KI-50 [core, tfjs] Add SequenceLength tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiaTuchina committed Jul 26, 2023
1 parent b5e5d7d commit 13566bd
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.kinference.KITestEngine
import io.kinference.utils.TestRunner
import kotlin.test.Test

class TestSequenceInsert {
class SequenceInsertTest {
private fun getTargetPath(dirName: String) = "sequence_insert/$dirName/"

@Test
Expand Down
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"))
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import io.kinference.tfjs.runners.TFJSTestEngine.TFJSAccuracyRunner
import io.kinference.utils.TestRunner
import kotlin.test.Test

class TestSequenceInsert {
class SequenceInsertTest {
private fun getTargetPath(dirName: String) = "sequence_insert/$dirName/"

@Test
Expand Down
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"))
}
}
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 not shown.
Binary file not shown.
Binary file not shown.
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 not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

input_sequence
Binary file not shown.

0 comments on commit 13566bd

Please sign in to comment.