Loading TOC...


   $x as cntk:variable,
   $axes as cntk:axis*,
   [$keep-dims as xs:boolean],
   [$name as xs:string]
) as cntk:function


Computes the sum square of the input tensor’s element along the provided axes. The resulted tensor has the same rank as the input if keepdims equal 1. If keepdims equal 0, then the resulted tensor have the reduced dimension pruned.

$x The input tensor.
$axes Axis along which the reduction will be performed.
$keep-dims Keep the reduced dimension or not, default True mean keep reduced dimension.
$name The name of the function instance in the network.


  let $input-variable1 := cntk:input-variable(cntk:shape((3)), "float",
    fn:false(), fn:false(), "feature")
  let $input-variable2 := cntk:input-variable(cntk:shape((3)), "float",
    fn:false(), fn:false(), "feature")
  return cntk:reduce-sum-square($input-variable1, (cntk:axis(0)), fn:true(),
    "RT1 M6)(a>")
  => cntk:function(Composite ReduceSumSquare (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.