Loading TOC...

cntk.parameterSetValue

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

  var rs1 = cntk.parameterFromValue(cntk.value(cntk.shape([1]), [3]), "parameter-variable-cntk-value")
  var set1 = cntk.parameterSetValue(rs1, cntk.value(cntk.shape([1]), [4]))
  cntk.parameterValue(rs1)
  => cntk.value(Shape([224 x 224 x 3]), Device Kind Name(CPU))

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