Loading TOC...

cntk:value-copy-from

cntk:value-copy-from(
   $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

  let $value1 := cntk:value(cntk:shape((2,2)), json:to-array(1 to 4), cntk:cpu(), "float")
  let $value2 := cntk:value(cntk:shape((2,2)), json:to-array(2 to 5), cntk:cpu(), "float")
  return cntk:value-copy-from($value1, $value2)

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