Need help to translate this Pytorch part to Flux

Can you make it minimal to better see, what is causing a problem? I do not have a GPU, therefore I might not be able to help.

1 Like