Loading TOC...

cntk.valueDevice

cntk.valueDevice(
   $value as cntk.value
) as cntk.device

Summary

Returns the descriptor of the device that this value resides on

Parameters
$value The value used to get the device.

Example

  var variable = cntk.inputVariable([2,2]), "float", fn.false(),
    fn.false(), "feature")
  var value = cntk.value(cntk.shape([2,2]), [1,2,3,4], cntk.cpu(), "float")
  var newValue = cntk.valueDeepClone(value, fn.false())
  xdmp.quote(cntk.valueDevice(newValue))
  => cntk.device(Device Kind Name(CPU))

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