ort:value-get-type

ort:value-get-type(
   $value as ort:value
) as xs:string

Summary

Returns the tensor element type of the ort:value as an xs:string.

Parameters
$value An ort:value.

Example

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