I want to add some conditional control in my symbol, it seems that if-else is evaluated in symbol construction time. But I want it to evaluated in symbol run time.
a = mx.symbol.Variable(name='a')
b = mx.symbol.Variable(name='b')
if a>b:
c = a-b
else:
c = a+b
TensorFlow provides the tf.cond() operator to deal with it, is there a counterpart in mxnet?