Loading TOC...

cntk:value-shape

cntk:value-shape(
   $value as cntk:value
) as cntk:shape

Summary

Returns the shape of this value's contents.

Parameters
$value The value used to get the shape.

Example

  let $value := cntk:sequence(cntk:shape((2,2)), json:to-array(1 to 8),
    fn:false(), cntk:cpu(), "float")
  return xdmp:quote(cntk:value-shape($value))
  => cntk:shape(Shape([2 x 2 x 2 x 1]))

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.