Skip to content

Commit

Permalink
Fix issue with mismatched int dtype in proto
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostrzyciel committed Jan 1, 2024
1 parent 7a665d6 commit 0ee07ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object FallEncodingFlow extends MlEncodingFlow[FallInferenceInput, FallInference
id = input.id,
input = Map(
"array" -> TensorProto(
dtype = DataType.DT_INT64,
dtype = DataType.DT_INT16,
tensorShape = shape,
intVal = flatTensor,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package eu.assistiot.inference.benchmark.util

object Util:
def bytesToHex(bytes: Array[Byte]) =
val result = new StringBuilder
for (aByte <- bytes) {
result.append(String.format("%02x", aByte))
}
result.toString

0 comments on commit 0ee07ac

Please sign in to comment.