Loading TOC...

cntk.valueDeepClone

cntk.valueDeepClone(
   $value as cntk.value,
   $read-only as 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

  var value = cntk.batch(cntk.shape([2,2]), [1,2,3,4,5,6], cntk.cpu(), "float")
  cntk.valueDeepClone(value)
  => cntk.value(Shape([2 x 1 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.