Loading TOC...
Matches for cat:function (cat:function (cat:function/javascript (cat:function))) have been highlighted. remove

MarkLogic Server 11.0 Product Documentation
ort.valueGetArray

ort.valueGetArray(
   value as ort.value
) as Array

Summary

Returns the tensor represented by the ort.value as a flattened one-dimensional array. The value type of the ort:value must be "TENSOR".

Parameters
value An ort.value.

Example

  const v = ort.value([1,2,3,4,5,6], [2,3], "float")
  ort.valueGetArray(v)
  =>
  [1,2,3,4,5,6]

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.