pytorch/torch/csrc/generic
Pritam Damania 2b221a9599 Remove PyCFunction casts as much as possible. (#46227)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46227

Follow up from https://github.com/pytorch/pytorch/issues/45419, in
this PR I've removed as many PyCFunction casts as I could from the codebase.

The only ones I didn't remove were the ones with `METH_VARARGS | METH_KEYWORDS`
which have 3 parameters instead of 2 and had to be casted. Example: `
{"copy_", (PyCFunction)(void(*)(void))THPStorage_(copy_), METH_VARARGS |
METH_KEYWORDS, nullptr},`
ghstack-source-id: 114632704

Test Plan: waitforbuildbot

Reviewed By: albanD

Differential Revision: D24269435

fbshipit-source-id: 025cfd43a9a2a3e59f6b2951c1a78749193d77cf
2020-10-20 15:01:51 -07:00
..
serialization.cpp Back out "Revert D21171334: [pytorch][PR] Change StorageImpl to track byte count rather than element count" (#37893) 2020-05-05 22:43:15 -07:00
serialization.h Fix some bugs with zipfile serialization (#32244) 2020-02-05 15:32:14 -08:00
Storage.cpp Do not use PRId64 in torch/csrc (#44767) 2020-09-17 14:00:02 -07:00
Storage.h Delete THP_CORE macro; partially replace with THP_BUILD_MAIN_LIB (#29143) 2019-11-06 15:02:02 -08:00
StorageMethods.cpp Remove PyCFunction casts as much as possible. (#46227) 2020-10-20 15:01:51 -07:00
StorageSharing.cpp Remove PyCFunction casts as much as possible. (#46227) 2020-10-20 15:01:51 -07:00
utils.cpp Remove THD (#22065) 2019-06-25 12:19:13 -07:00
utils.h Python API for Complex Storage and storage copy logic (#35771) 2020-05-01 11:47:22 -07:00