Loading TOC...

cntk:function-from-variable

cntk:function-from-variable(
   $variable as cntk:variable
) as cntk:variable

Summary

Creates a pass-through function of the specified variable. The variable must be an output variable with a function as its owner.

Parameters
$variable The variable based on which to create the pass-through function.

Example

  let $model := fn:doc("sample.dnn")
  let $function := cntk:function($model/binary(), cntk:cpu())
  let $output-variable := cntk:variable-from-function($function)
  return cntk:function-from-variable($output-variable)

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