MarkLogic 10 Product Documentation
ort:value-get-array

ort:value-get-array(
   $value as ort:value
) as xs:numeric*

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

  let $v := ort:value((1,2,3,4,5,6), (2,3), "float")
  return ort:value-get-array($v)
  =>
  1,2,3,4,5,6
Powered by MarkLogic Server | Terms of Use | Privacy Policy