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-03-06 10:48:15 -08:00
2020-05-07 19:58:15 -07:00
2018-12-11 16:54:08 -08:00
2019-02-12 21:16:34 -08:00
2019-02-12 21:16:34 -08:00
2018-03-27 13:10:18 -07:00
2019-03-06 10:48:15 -08:00
2018-07-27 10:56:39 -07:00
2020-03-06 11:58:30 -08:00
2020-01-17 16:03:19 -08:00
2018-10-17 11:50:34 -07:00
2018-08-02 11:54:30 -07:00
2018-11-14 18:04:09 -08:00
2020-04-13 21:41:52 -07:00
2019-03-31 17:42:27 -07:00
2020-03-27 14:25:17 -07:00
2018-03-27 13:10:18 -07:00
2020-03-19 00:29:56 -07:00
2020-05-18 13:41:05 -07:00
2020-05-28 15:51:38 -07:00
2018-03-27 13:10:18 -07:00
2018-11-16 12:16:28 -08:00
2018-06-04 09:04:30 -07:00
2020-03-02 13:20:51 -08:00
2019-10-06 09:37:50 -07:00
2019-12-19 12:10:22 -08:00
2019-03-06 10:48:15 -08:00
2020-05-19 15:48:48 -07:00
2020-03-18 00:13:18 -07:00
2019-02-12 21:16:34 -08:00
2018-11-28 15:45:37 -08:00
2020-02-22 01:22:18 -08:00
2019-03-06 10:48:15 -08:00
2019-02-14 16:52:57 -08:00
2019-03-08 10:46:24 -08:00
2018-09-19 16:45:54 -07:00
2018-09-05 16:28:09 -07:00
2019-11-13 16:48:40 -08:00
2019-12-18 13:10:57 -08:00
2019-12-18 13:10:57 -08:00
2020-04-13 11:31:52 -07:00
2019-06-07 13:48:10 -07:00
2020-04-24 23:13:31 -07:00
2020-04-18 13:30:43 -07:00
2018-10-04 02:09:56 -07:00
2018-03-27 13:10:18 -07:00
2018-08-28 11:57:08 -07:00
2018-08-28 11:57:08 -07:00
2018-12-20 17:04:39 -08:00
2019-08-12 16:12:30 -07:00
2018-10-17 12:57:19 -07:00
2019-01-10 09:35:33 -08:00
2019-06-21 23:06:27 -07:00
2019-06-21 23:06:27 -07:00
2018-11-14 18:04:09 -08:00
2018-10-19 20:22:08 -07:00
2018-03-27 13:10:18 -07:00
2020-01-03 08:48:46 -08:00
2020-01-17 16:03:19 -08:00
2018-08-28 11:57:08 -07:00
2018-03-27 13:10:18 -07:00
2020-03-02 15:43:50 -08:00
2019-08-12 16:12:30 -07:00
2020-04-13 11:31:52 -07:00
2020-04-13 11:31:52 -07:00
2020-04-13 11:31:52 -07:00
2020-04-09 14:38:18 -07:00
2019-12-16 13:57:19 -08:00
2018-12-10 19:30:58 -08:00
2019-12-16 13:57:19 -08:00
2018-12-10 19:30:58 -08:00
2020-03-19 00:29:56 -07:00
2018-12-10 19:30:58 -08:00
2018-11-08 11:34:34 -08:00
2020-01-17 16:03:19 -08:00
2019-06-13 17:13:42 -07:00
2018-10-08 12:24:52 -07:00
2019-12-02 20:17:42 -08:00
2018-12-21 11:09:27 -08:00
2018-11-26 19:10:43 -08:00
2020-03-19 00:29:56 -07:00
2018-12-10 21:35:04 -08:00
2018-11-26 19:10:43 -08:00
2020-03-19 00:29:56 -07:00
2018-10-31 15:59:16 -07:00
2019-09-17 04:01:36 -07:00
2018-09-27 03:09:54 -07:00
2020-04-13 11:31:52 -07:00
2019-05-23 23:17:59 -07:00
2020-04-09 14:38:18 -07:00
2018-12-12 12:21:10 -08:00
2018-12-12 12:21:10 -08:00
2019-12-16 13:57:19 -08:00
2018-09-25 17:41:05 -07:00
2018-09-05 16:28:09 -07:00
2019-06-25 16:57:42 -07:00
2018-03-27 13:10:18 -07:00
2019-12-16 13:57:19 -08:00
2020-03-30 12:28:27 -07:00
2020-05-04 11:54:34 -07:00
2020-05-04 11:54:34 -07:00
2020-05-04 11:56:45 -07:00
2020-05-05 19:45:36 -07:00
2020-04-09 14:38:18 -07:00
2020-04-09 14:38:18 -07:00
2018-07-11 18:54:45 -07:00
2020-03-19 00:29:56 -07:00
2020-03-19 00:29:56 -07:00
2018-03-27 13:10:18 -07:00
2018-10-23 16:21:26 -07:00
2018-03-27 13:10:18 -07:00
2019-01-18 11:52:12 -08:00
2020-01-17 16:03:19 -08:00
2020-01-17 16:03:19 -08:00
2018-03-27 13:10:18 -07:00
2018-07-19 16:25:59 -07:00
2018-03-27 13:10:18 -07:00
2018-09-26 13:29:18 -07:00
2019-01-10 16:22:22 -08:00
2019-10-06 09:37:50 -07:00
2018-11-14 18:04:09 -08:00
2018-08-28 11:57:08 -07:00
2020-05-21 15:26:08 -07:00
2020-05-21 15:26:08 -07:00
2020-01-17 12:13:34 -08:00
2020-01-17 12:13:34 -08:00
2020-04-01 14:29:05 -07:00
2018-09-25 17:41:05 -07:00
2020-03-03 10:33:21 -08:00
2018-09-27 03:09:54 -07:00
2018-09-27 03:09:54 -07:00
2019-07-26 15:52:15 -07:00
2019-09-05 04:32:04 -07:00
2018-08-23 13:39:55 -07:00
2018-10-04 02:09:56 -07:00
2020-01-17 16:03:19 -08:00