Files
pytorch/caffe2/core
Natalia Gimelshein 9c19a12965 fix asserts in cuda code (#39047)
Summary:
Gets rid of some in-kernel asserts where they can be replaced with static_asserts
Replaces bare in-kernel `assert` in one case with `CUDA_KERNEL_ASSERT` where necessary
replaces host code `assert`s with `TORCH_INTERNAL_ASSERT`
Another group of asserts is in fractional max pooling kernels which should be fixed regardless https://github.com/pytorch/pytorch/issues/39044, the problems there are not just asserts.
I've audited remaining cases of in-kernel asserts, and they are more like `TORCH_INTERNAL_ASSERT`, so they should not happen with invalid user data. I think it's ok to leave them as is.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39047

Differential Revision: D21750392

Pulled By: ngimel

fbshipit-source-id: e9417523a2c672284de3515933cb7ed166e56719
2020-05-28 15:51:38 -07:00
..
2019-02-12 21:16:34 -08:00
2018-03-27 13:10:18 -07:00
2020-05-28 15:51:38 -07:00
2018-11-16 12:16:28 -08:00
2020-03-02 13:20:51 -08:00
2020-05-19 15:48:48 -07:00
2018-10-04 02:09:56 -07:00
2019-08-12 16:12:30 -07:00
2019-06-21 23:06:27 -07:00
2019-06-21 23:06:27 -07:00
2018-03-27 13:10:18 -07:00
2019-08-12 16:12:30 -07:00
2019-12-02 20:17:42 -08:00
2018-12-10 21:35:04 -08:00
2018-12-12 12:21:10 -08:00
2018-12-12 12:21:10 -08:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2020-01-17 12:13:34 -08:00
2020-01-17 12:13:34 -08:00
2020-03-03 10:33:21 -08:00
2018-10-04 02:09:56 -07:00