Does Mxnet have a symbol to support adversarial training


I would like to conduct the experiment based on adversarial learning.
Is it possible to easily add a layer which acts as an identity transformation in forwarding propagation and changes its sign of loss in backpropagation?


Hi @richard

You can certainly implement your own custom operator with different forward and backward methods (, but do you really need to do this for adversarial training? I can see an example of DCGAN in the repository that might be useful for you (


Thanks, the custom operator works fine~
BTW, do you have any idea of how to weighted the multi-losses using module?


You can simply add the losses with the weights that you want to apply.


Ah, I missed the scale attribute~