Thanks for your reply!
What if I want to do something like X[:,1]=Y.clone()? This always returns me an error like
“in-place operations can be only used on variables that don’t share storage with any other variables, but detected that there are 2 objects sharing it”