Mixed input layer using Flux gives "ERROR: Mutating arrays is not supported"

Did you find any solution for this problem? Looks similar to this issue: Gradient of a loss function : struggling to avoid arrays mutation - #3 by ChrisRackauckas