Loading TOC...

cntk:parameter-set-value

cntk:parameter-set-value(
   $parameter as cntk:parameter,
   $value as cntk:value
) as empty sequence

Summary

Sets the value of the parameter, using a cntk:value that is not a sequence or batch.

Parameters
$parameter The parameter whose value is to be set.
$value The value used to set.

Example

  let $v := cntk:value(cntk:shape((1)), json:to-array(3))
  let $rs1 := cntk:parameter-from-value($v, "parameter-variable-cntk-value")
  let $set1 := cntk:parameter-set-value($rs1, cntk:value(cntk:shape((1)),
    json:to-array(4)))
  return cntk:parameter-value($rs1)
  => cntk:value(Shape([1]), Device Kind Name(GPU))

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