ort:string

ort:string(
   $content as xs:string*,
   $shape as xs:long*
) as ort:value

Summary

Creates a string tensor.

Parameters
$content A sequence of xs:string denoting the flattened content of the string tensor.
$shape A sequence of xs:long denoting the shape of the string tensor.

Example

  ort:string(("hello", " ", "world", "this is", "", " an example!"), (2,3))
  =>
  OrtValue(Shape:[2, 3], Type: STRING)
Powered by MarkLogic Server | Terms of Use | Privacy Policy