Start by working through the discussion of inplace-modification errors and
how to debug them given in this post:
If you’re still having problems, tell us what specific debugging techniques
you’ve tried and post the entire error message you get including the
forward-pass traceback produced by anomaly detection.