Loading TOC...

cntk.sequenceScatter

cntk.sequenceScatter(
   $seq as cntk.variable,
   $condition as cntk.variable,
   $name as String
) as cntk.function

Summary

Performs the inverse of gather. The sequence ``seq`` must have as many elements as the number of True values in the sequence ``condition``. It will return a sequence whose length is the same as the ``condition`` sequence with zeroes everywhere except for the locations where ``condition`` evaluates to True in which case it will copy the elements from ``seq`` preserving their order.

Parameters
$seq The symbolic sequence from which elements will be copied in the output.
$condition The symbolic sequence which denotes the locations where elements should be copied.
$name The name of the function instance in the network.

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