Loading TOC...

cntk.sequenceScatterWithFactor

cntk.sequenceScatterWithFactor(
   $operand as cntk.variable,
   $condition as cntk.variable,
   $factor as Array,
   $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
$operand The operand of the operation.
$condition The symbolic sequence which denotes the locations where elements should be copied.
$factor
$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.