Loading TOC...

cntk:shape

cntk:shape(
   [$dimensions as xs:unsignedLong*]
) as cntk:shape

Summary

Returns a shape object recognized by CNTK.

Parameters
$dimensions A sequence of xs:unsignedLong.

Example

  cntk:shape()
  => Default return value. Representing the shape of a scalar.

Example

  cntk:shape(())
  => The shape of a scalar.

Example

  cntk:shape((1))
  => The shape of a scalar.

Example

  cntk:shape((0))
  => A shape object with rank 1, where the first axis has 0 dimension. This can
be considered ill-formed. When used in construction of <code>cntk:value</code>
type objects, an exception is thrown.

Example

  cntk:shape((3))
  => The shape of a length 3 vector.

Example

  cntk:shape((2,3))
  => the shape of any 2 by 3 matrix.

Example

  cntk:shape((2,3,4,5,6,7,8))
  => the shape of any 2 by 3 by 4 by 5 by 6 by 7 by 8 tensor.

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