Loading TOC...

cntk:parameter-from-scalar

cntk:parameter-from-scalar(
   $shape as cntk:shape,
   $data-type as xs:string,
   $init as xs:double,
   [$device as cntk:device],
   [$name as xs:string]
) as cntk:parameter

Summary

Constructs a parameter from a scalar value.

Parameters
$shape The shape of the parameter.
$data-type The data-type.
$init A scalar numeric value with which to initialize the value of the parameter.
$device On which device to create the parameter.
$name The name of the parameter.

Example

  cntk:parameter-from-scalar(cntk:shape((2,3)), "float", 55)
  => cntk:parameter(Parameter(Uid(Parameter4415), Shape([2 x 3]), Dynamic Axes([])))

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