Loading TOC...

cntk:variable-from-function

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

Summary

Constructs an output variable aliasing the output of the specified function. Throws exception if the specified function has multiple outputs.

Parameters
$function The function whose output variable is to be aliased.

Example

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

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