Loading TOC...

cntk:expand-dims

cntk:expand-dims(
   $operand as cntk:variable,
   $axis as cntk:axis,
   $name as xs:string
) as cntk:function

Summary

Adds a singleton (size 1) axis at position axis.

Parameters
$operand Input tensor.
$axis The position to insert the singleton axis.
$name The name of the function instance in the network.

Example

  let $input-variable1 := cntk:input-variable(cntk:shape((3,4)), "float",
    fn:false(), fn:false(), "feature",())
  return cntk:eye-like($input-variable1,fn:false())
  => cntk:function(Composite EyeLikeOp (Input(Name(feature), Shape([3 x 4]),
  Dynamic Axes([]))))

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