Loading TOC...

cntk:value-deep-clone

cntk:value-deep-clone(
   $value as cntk:value,
   $read-only as xs:boolean
) as cntk:value

Summary

Creates a new Value with newly allocated storage on the same device as this value and copies this value's contents into the newly allocated Value.

Parameters
$value The value to deep clone.
$read-only If the value is read-only.

Example

  let $value := cntk:batch(cntk:shape((2,2)), json:to-array(1 to 16),
    cntk:cpu(), "float")
  return cntk:value-deep-clone($value)
  => cntk:value(Shape([2 x 2 x 1 x 4]), Device Kind Name(CPU))

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