Loading TOC...

ort:sequence

ort:sequence(
   $values as ort:value*
) as ort:value

Summary

Creates a value with type "SEQUENCE". Each value of the sequence must have value type either "TENSOR" or "MAP". If "TENSOR", their tensor element type must be the same. Supported tensor element types are: "STRING", "INT64", "FLOAT", and "DOUBLE". Supported "MAP" types are: "STRING->FLOAT", and "INT64->FLOAT".

Parameters
$values A sequence of ort:value.

Example

  ort:sequence((ort:value((2,3),(2),"float"),ort:value((1),(1),"float")))
  =>
  OrtSequence(Count:[2], Contents: [OrtValue(Shape:[2], Type: FLOAT), OrtValue(Shape:[1], Type: FLOAT), ])

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