Loading TOC...

MarkLogic 10 Product Documentation
ort.sequence

ort.sequence(
   values as Array
) 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 An array 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.