tch-rs
tch-rs copied to clipboard
Tensor #[must_use] not always correct
trafficstars
Hi,
First off, thank you for this amazing library!
I noticed how Tensor has been annotated with #[must_use] but this isn't necessarily correct for in-place operations such as cumsum_.
Could the generating method be updated to only annotate #[must_use] for non-in-place operations? I'd be happy to implement this if you think it is a good idea?
This is indeed annoying, I would love to see this fixed