Loading TOC...

cntk:constant-value

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

Summary

Returns the value of the constant.

Parameters
$constant The constant whose value is to be returned.

Example

  let $scalar := cntk:scalar("float", 55.55, cntk:cpu())
  return cntk:constant-value($scalar)
  => cntk:value(Shape([]), Device Kind Name(CPU))

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