MarkLogic 10 Product Documentation
ort.valueGetShape

ort.valueGetShape(
   value as ort.value
) as Array

Summary

Returns the shape of the ort.value as an Array.

Parameters
value An ort.value.

Example

  const v = ort.value([1,2,3,4,5,6], [2,3], "float")
  ort.valueGetShape(v)
  =>
  [2,3]
Powered by MarkLogic Server | Terms of Use | Privacy Policy