Loading TOC...

cntk:gather-op-on-axis

cntk:gather-op-on-axis(
   $indices as cntk:variable,
   $reference as cntk:variable,
   $axis as cntk:axis,
   [$name as xs:string]
) as cntk:function

Summary

Create an instance of the CNTK build-in operation to get a tensor that is gathered from reference tensor by indices.

Parameters
$indices A tensor of indices.
$reference A tensor of values.
$axis The axis along which the indices refer to. Default (None) means the first axis. Only one axis is supported;
$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:gather-op-on-axis($input-variable2, $input-variable1, cntk:axis(0), "rppg?Wr_U_")
  => cntk:function(Composite GatherOp (Input(Name(feature), Shape([3]), Dynamic Axes([])), Input(Name(feature), Shape([3]), Dynamic Axes([]))))

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