Loading TOC...

cntk:custom-proxy-op

cntk:custom-proxy-op(
   $operands as cntk:variable*,
   $output-shape as cntk:shape,
   $output-type as cntk:type,
   $name as xs:string
) as cntk:function

Summary

A proxy node that helps saving a model with different number of operands.

Parameters
$operands
$output-shape
$output-type
$name The name of the function instance in the network.

Example

  xquery version "1.0-ml";

  let $input-variable1 := cntk:input-variable(cntk:shape((2,3,4)), "float", fn:false(), fn:false(), "feature",())
  let $model := cntk:custom-proxy-op($input-variable1,"times",cntk:shape(()),"float")
  let $input-values := (cntk:value(cntk:shape((2,3,4)), json:to-array((1 to 24)), cntk:cpu(), "float"))
  let $pair1 := json:to-array(($input-variable1, $input-values))
  let $input-pairs := json:to-array(($pair1))
  let $output-variable := cntk:function-output($model)
  let $output-value := cntk:evaluate($model, $input-pairs, $output-variable, cntk:cpu())
  return (cntk:value-to-array($output-variable, $output-value))

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