Loading TOC...

cntk:shape-is-scalar

cntk:shape-is-scalar(
   $shape as cntk:shape
) as xs:boolean

Summary

Returns true if the shape represents a scalar.

Parameters
$shape The input shape.

Example

  cntk:shape-is-scalar(cntk:shape((1))
  => true

Example

  cntk:shape-is-scalar(cntk:shape((6,7,8))
  => false

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