Loading TOC...

cntk:reconcile-dynamic-axes

cntk:reconcile-dynamic-axes(
   $x as cntk:variable,
   $axes-as-operand as cntk:variable,
   [$name as xs:string]
) as cntk:function

Summary

Create a new Function instance which reconciles the dynamic axes of the specified tensor operands. The output of the returned Function has the sample layout of the ‘x’ operand and the dynamic axes of the ‘dynamic_axes_as’ operand. This operator also performs a runtime check to ensure that the dynamic axes layouts of the 2 operands indeed match. layouts of the 2 operands indeed match.

Parameters
$x The Function/Variable, whose dynamic axes are to be reconciled.
$axes-as-operand The Function/Variable, to whose dynamic axes the operand ‘x’’s dynamic axes are reconciled to.
$name The name of the function instance in the network.

Example

  let $input-variable1 := cntk:input-variable(cntk:shape((3)), "float", fn:false(),
    fn:false(), "feature")
  let $input-variable2 := cntk:input-variable(cntk:shape((3)), "float", fn:false(),
    fn:false(), "feature")
  return cntk:reconcile-dynamic-axes($input-variable2, $input-variable2, "RwVZL")
  => cntk:function(Composite ReconcileDynamicAxis (Input(Name(feature), Shape([3]),
  Dynamic Axes([Sequence Axis(Default Dynamic Axis), Batch Axis(Default Batch Axis)]))))

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