Deepcopy of expr


Is it possible to do a deep copy of Relay expression in C++?


atm we don’t have a util to do so but can be implemented via a Functor. However, given that most of the nodes are immutable, it is not necessary to do a deep copy


I was having some issues with CallNode attrs which is mutable.


As far as i understand the attrs of CallNode should not be mutable, so perhaps we can double check what was going on in our logic and fix that instead


Very possible. I will look at it again. I was hacking around and was not using right SW practices :slight_smile: