Loading TOC...

cntk:to-sequence-like

cntk:to-sequence-like(
   $x as cntk:variable,
   $dynamic-axes-like as cntk:variable,
   $name as xs:string
) as cntk:function

Summary

Create an instance of the CNTK built-in operator for converting the specified tensor operand into a sequence. This overload allows specifying an additional 'dynamicAxesLike' operand which is used to obtain the lengths of the generated sequences; the dynamic axes of the generated sequence are required to match the dynamic axes of the 'dynamicAxesLike' operand.

Parameters
$x The tensor (or its name) which is converted to a sequence.
$dynamic-axes-like Tensor operand used to obtain the lengths of the generated sequences. The dynamic axes of the generated sequence tensor match the dynamic axes of the ‘dynamic_axes_like’ operand.
$name The name of the function instance in the network.

Example

  let $input-variable1 := cntk:input-variable(cntk:shape((3,2)), "float",
    fn:false(), fn:false(), "feature", (cntk:default-batch-axis()))
  let $input-variable2 := cntk:input-variable(cntk:shape((3)), "float", fn:false(),
    fn:false(), "feature" )
  return cntk:to-sequence-like($input-variable1, $input-variable2, "XG7<!nN$e")
  => cntk:function(Composite ToSequenceLikeOp (Input(Name(feature), Shape([3 x 2]),
  Dynamic Axes([Batch Axis(Default Batch Axis)])), Input(Name(feature), Shape([3]),
  Dynamic Axes([Sequence Axis(Default Dynamic Axis), Batch Axis(Default Batch Axis)]))))

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