Loading TOC...

cntk.valueCopyFrom

cntk.valueCopyFrom(
   $value as cntk.value,
   $source-value as cntk.value
) as empty sequence

Summary

Copies the contents of the source value to this Value. The shapes of the source value's data and mask must be identical to this value's data and mask.

Parameters
$value The destination value in which to copy source-value.
$source-value The source value from which to copy.

Example

  var value1 = cntk.value(cntk.shape([2,2]), [1,2,3,4], cntk.cpu(), "float")
  var value2 = cntk.value(cntk.shape([2,2]), [2,3,4,5], cntk.cpu(), "float")
  cntk.valueCopyFrom(value1, value2)

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