Loading TOC...

cntk:constant-from-value

cntk:constant-from-value(
   $value as cntk:value,
   [$name as xs:string]
) as cntk:constant

Summary

Constructs a constant from a cntk:value, that is not a sequence or batch.

Parameters
$value The value used to construct a constant.
$name The name of the constant to construct.

Example

  cntk:constant-from-value(cntk:value(cntk:shape((1)), json:to-array(3)))
  => cntk:constant(Constant(Uid(Constant0), Shape([1]), Dynamic Axes([])))

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