Currently eager and generate don't have the same semantics. Generate would create a new value while in eager we return the same tensor.
It is desirable to have the same behavior in both paths, this will allow us to catch in-place errors on the torch level and not during IREE execution.
The only downside is that during eager it will be slower. This is far less of headache.
Currently eager and generate don't have the same semantics. Generate would create a new value while in eager we return the same tensor. It is desirable to have the same behavior in both paths, this will allow us to catch in-place errors on the torch level and not during IREE execution. The only downside is that during eager it will be slower. This is far less of headache.