[Cpp API Compatibility] Add TORCH_WARN macro and fix resize_
#78576
+86
−4
Loading