Loading TOC...

cntk.constantValue

cntk.constantValue(
   $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

  var scalar = cntk.scalar("float", 55.55, cntk.cpu())
  cntk.constantValue(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.