Skip to content

Commit

Permalink
KI-40 [tfjs] Remove casting of output data in Size operator
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiaTuchina committed Jul 17, 2023
1 parent 058c22c commit fa5a47c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class SizeVer1(

override suspend fun <D : ONNXData<*, *>> apply(contexts: Contexts<D>, inputs: List<TFJSTensor?>): List<TFJSTensor?> {
val inputSize = inputs[0]!!.data.linearSize
val dataSize = NDArrayTFJS.intScalar(inputSize.toLong())
val dataSize = NDArrayTFJS.intScalar(inputSize)
return listOf(dataSize.asTensor("size"))
}
}

0 comments on commit fa5a47c

Please sign in to comment.