Loading TOC...

cntk:transpose-on-axes

cntk:transpose-on-axes(
   $x as cntk:variable*,
   $permutation as cntk:axis*,
   $name as xs:string
) as cntk:function

Summary

Permutes the axes of the tensor. The output has the same data but the axes are permuted according to perm.

Parameters
$x Tensor to be transposed.
$permutation The permutation to apply to the axes.
$name The name of the function instance in the network.

Example

  let $input-variable1 := cntk:input-variable(cntk:shape((2,2,2)), "float",
    fn:false(), fn:false(), "feature")
  return cntk:transpose-on-axes($input-variable1,(cntk:axis(1),cntk:axis(0),cntk:axis(2)))
  => cntk:function(Composite TransposeAxes (Input(Name(feature),
  Shape([2 x 2 x 2]), 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.