diff options
Diffstat (limited to 'nn/runtime/test/specs')
6 files changed, 16 insertions, 12 deletions
diff --git a/nn/runtime/test/specs/V1_1/lsh_projection_2_relaxed.mod.py b/nn/runtime/test/specs/V1_1/lsh_projection_2_relaxed.mod.py index 6608b0666..1904f0490 100644 --- a/nn/runtime/test/specs/V1_1/lsh_projection_2_relaxed.mod.py +++ b/nn/runtime/test/specs/V1_1/lsh_projection_2_relaxed.mod.py @@ -20,8 +20,9 @@ num_bits = 2 model = Model() -hhash = Parameter("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), - [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]) +hhash = Parameter( + "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), + [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]).ShouldNeverBeInternal() lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits)) weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) type_param = Int32Scalar("type_param", 1) # SPARSE diff --git a/nn/runtime/test/specs/V1_1/lsh_projection_relaxed.mod.py b/nn/runtime/test/specs/V1_1/lsh_projection_relaxed.mod.py index 9a1bfaca2..c8ac42bdc 100644 --- a/nn/runtime/test/specs/V1_1/lsh_projection_relaxed.mod.py +++ b/nn/runtime/test/specs/V1_1/lsh_projection_relaxed.mod.py @@ -20,8 +20,9 @@ num_bits = 2 model = Model() -hhash = Parameter("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), - [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]) +hhash = Parameter( + "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), + [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]).ShouldNeverBeInternal() lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits)) weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) type_param = Int32Scalar("type_param", 2) # DENSE @@ -38,4 +39,3 @@ input0 = { output0 = {output: [1, 1, 1, 0, 1, 1, 1, 0]} Example((input0, output0)) - diff --git a/nn/runtime/test/specs/V1_2/lsh_projection_3_relaxed.mod.py b/nn/runtime/test/specs/V1_2/lsh_projection_3_relaxed.mod.py index de7cec111..443fe6956 100644 --- a/nn/runtime/test/specs/V1_2/lsh_projection_3_relaxed.mod.py +++ b/nn/runtime/test/specs/V1_2/lsh_projection_3_relaxed.mod.py @@ -20,8 +20,9 @@ num_bits = 2 model = Model() -hhash = Parameter("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), - [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]) +hhash = Parameter( + "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), + [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]).ShouldNeverBeInternal() lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits)) weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) type_param = Int32Scalar("type_param", 3) # SPARSE diff --git a/nn/runtime/test/specs/V1_2/lsh_projection_4_relaxed.mod.py b/nn/runtime/test/specs/V1_2/lsh_projection_4_relaxed.mod.py index 2b3b33a1e..a8af8940d 100644 --- a/nn/runtime/test/specs/V1_2/lsh_projection_4_relaxed.mod.py +++ b/nn/runtime/test/specs/V1_2/lsh_projection_4_relaxed.mod.py @@ -20,8 +20,9 @@ num_bits = 2 model = Model() -hhash = Parameter("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), - [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]) +hhash = Parameter( + "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), + [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]).ShouldNeverBeInternal() lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits)) weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) type_param = Int32Scalar("type_param", 1) # SPARSE DEPRECATED diff --git a/nn/runtime/test/specs/V1_2/lsh_projection_deprecated.mod.py b/nn/runtime/test/specs/V1_2/lsh_projection_deprecated.mod.py index 2b3b33a1e..a8af8940d 100644 --- a/nn/runtime/test/specs/V1_2/lsh_projection_deprecated.mod.py +++ b/nn/runtime/test/specs/V1_2/lsh_projection_deprecated.mod.py @@ -20,8 +20,9 @@ num_bits = 2 model = Model() -hhash = Parameter("hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), - [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]) +hhash = Parameter( + "hash", "TENSOR_FLOAT32", "{%d, %d}" % (num_hash, num_bits), + [0.123, 0.456, -0.321, -0.654, 1.234, 5.678, -4.321, -8.765]).ShouldNeverBeInternal() lookup = Input("lookup", "TENSOR_INT32", "{%d, %d}" % (num_input, num_bits)) weight = Input("weight", "TENSOR_FLOAT32", "{%d}" % (num_input)) type_param = Int32Scalar("type_param", 1) # SPARSE DEPRECATED diff --git a/nn/runtime/test/specs/V1_2/lsh_projection_float16.mod.py b/nn/runtime/test/specs/V1_2/lsh_projection_float16.mod.py index ed19b17f7..4b22ad190 100644 --- a/nn/runtime/test/specs/V1_2/lsh_projection_float16.mod.py +++ b/nn/runtime/test/specs/V1_2/lsh_projection_float16.mod.py @@ -36,4 +36,4 @@ input0 = { } output0 = {output: [1, 1, 1, 1, 1, 0, 0, 0]} -Example((input0, output0)).AddVariations("float16"); +Example((input0, output0)) |