Loading TOC...

cntk.squeezeAxes

cntk.squeezeAxes(
   $operand as cntk.variable,
   $axes as cntk.axis[],
   $name as String
) as cntk.function

Summary

Create an instance of the squeeze operation on specified tensor input operand, for the specified axis

Parameters
$operand The operand of the operation.
$axes The axes to squeeze.
$name The name of the function instance in the network.

Example

  var inputVariable1 = cntk.inputVariable(cntk.shape([1,3]), "float",
    fn.false(), fn.false(), "feature")
  cntk.squeezeAxes(inputVariable1,cntk.axis(0))
  => cntk.function(Composite Squeeze (Input(Name(feature), Shape([1 x 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.