Loading TOC...

cntk.function

cntk.function(
   $node as binary,
   [$device as cntk.device],
   [$format as String]
) as cntk.function

Summary

Constructs a CNTK model/function from the binary node.

Parameters
$node The binary node containing serialized definition of a CNTK model.
$device The device on which to store the model.
$format The model format, can be "cntk", or "onnx". Defaults to "cntk".

Required Privileges

http://marklogic.com/cntk/privileges/cntk-function

Example

  var model = fn.doc("sample.dnn")
  cntk.function(model.root, cntk.cpu())

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