Loading TOC...


   $condition as cntk.variable,
   $then-operand as cntk.variable,
   $else-operand as cntk.variable,
   [$name as String]
) as cntk.function


Return either value_if_true or value_if_false based on the value of flag. If flag != 0 value_if_true is returned, otherwise value_if_false. Behaves analogously to numpy.where(...).

$condition Condition tensor.
$then-operand True branch tensor.
$else-operand False branch tensor.
$name The name of the function instance in the network.


  var inputVariable1 = cntk.inputVariable(cntk.shape([3]), "float",
    fn.false(), fn.false(), "feature")
  var inputVariable2 = cntk.inputVariable(cntk.shape([3]), "float",
    fn.false(), fn.false(), "feature")
  cntk.elementSelect(inputVariable2, inputVariable2, inputVariable2, "LxY")
  => cntk.function(Composite Select (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.