Loading TOC...

cntk.shapeIsScalar

cntk.shapeIsScalar(
   $shape as cntk.shape
) as Boolean

Summary

Returns true if the shape represents a scalar.

Parameters
$shape The input shape.

Example

  cntk.shapeIsScalar(cntk.shape(1))
  => true

Example

  cntk.shapeIsScalar(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.