ort.value( data as Array, shape as Array, type as String ) as ort.value
Constructs an ort.value
to be supplied to an
ort.session
to perform inference. This function only creates
ort.value
with value type "TENSOR", and with a numeric element
type. Use function ort.sequence
to create ort.value
with value type "SEQUENCE", and function ort.map
to create
ort.value
with value type "MAP"; Use function
ort.string
to create tensor with element type "STRING".
ort.value([1,2,3,4,5,6], [2,3], "float") => an ort.value, described as OrtValue(Shape:[2, 3], Type: FLOAT)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.