Loading TOC...

cntk:gather-op

cntk:gather-op(
   $indices as cntk:variable,
   $reference as cntk:variable,
   [$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.
$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($input-variable1, $input-variable2, "a4")
  => cntk:function(Composite Gather (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.