Loading TOC...

cntk.batchOfSequences

cntk.batchOfSequences(
   $shape as cntk.shape,
   $data as Array,
   $sequence-start-flags as Boolean[],
   [$device as cntk.device],
   [$data-type as String],
   [$read-only as Boolean]
) as cntk.value

Summary

Constructs a batch of CNTK sequences as a cntk:value. A batch of sequence is yet another special kind of cntk:value, with the outer most dimension being the "batch dimension", followed by a "sequence dimension", where both axes are dynamic, and represents the number of sequences in this batch, and length of each sequence, respectively. In addition to the requirement of the length of $data being a multiple of the size represented by $shape, the length of $data must also equal the total size of numbers in the batch of sequences.

Parameters
$shape The shape of each value in the batch.
$data A json:array object, with each item being a json:array, representing a sequence, whose length is a multiple of the size represented by $shape.
$sequence-start-flags A sequence of flags. Each "true" means the corresponding sequence is the start of a new sequence, and "false" means this sequence is a continuation of the previous sequence.
$device The device on which the batch resides.
$data-type The data type of this value. Can be "float" or "double". Default is "float".
$read-only Whether the batch is read only. Right now, only false is supported.

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