Stop_gradient/detach equivalent in flux

Great! Thanks a lot, it made my code work :slight_smile: example over here: Autoencoder for telecommunication (Constellation shaping)