pytorch/test/cpp
Scott Wolchok 7328710cbc [PyTorch][codemod] Replace immediately-dereferenced cast calls w/castRaw (#50229)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50229

`fastmod -m 'cast(<((at|c10)::)?\w+Type>\(\)\s*)->' 'castRaw${1}->'` Presuming it builds, this is a safe change: the
result of `cast()` wasn't being saved anywhere, so we didn't need
it, so we can use a raw pointer instead of a new `shared_ptr`.
ghstack-source-id: 120769170

Test Plan: CI

Reviewed By: SplitInfinity

Differential Revision: D25837494

fbshipit-source-id: 46319100dc0dfc78f6d2b45148207f83481f2ada
2021-02-01 23:12:07 -08:00
..
api fix unflatten_dense_tensor when there is empty tensor inside (#50321) 2021-01-23 12:14:34 -08:00
common
dist_autograd Fix Windows build failure after DDP PR merged (#45335) 2020-09-25 12:37:50 -07:00
jit [PyTorch][codemod] Replace immediately-dereferenced cast calls w/castRaw (#50229) 2021-02-01 23:12:07 -08:00
rpc Support device map for distributed autograd while using TensorPipe. (#44859) 2021-01-27 13:01:44 -08:00
tensorexpr [NNC] Generate C++ code for Allocate and Free (#51070) 2021-02-01 13:06:51 -08:00
__init__.py remediation of S205607 2020-07-17 17:19:47 -07:00