ort.string( content as Array, shape as Array ) as ort.value
Creates a string tensor.
Parameters | |
---|---|
content |
An array of xs:string denoting the flattened content of the
string tensor.
|
shape |
An array 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)