ort:string( $content as xs:string*, $shape as xs:long* ) as ort:value
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.
|
ort:string(("hello", " ", "world", "this is", "", " an example!"), (2,3)) => OrtValue(Shape:[2, 3], Type: STRING)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.