Dmytro Dzhulgakov
c25e33789e
Lightweight at-most-once logging for API usage ( #20745 )
...
Summary:
Resubmit #20698 which got messed up.
Idea is that when PyTorch is used in a custom build environment (e.g. Facebook), it's useful to track usage of various APIs centrally. This PR introduces a simple very lightweight mechanism to do so - only first invocation of a trigger point would be logged. This is significantly more lightweight than #18235 and thus we can allow to put logging in e.g. TensorImpl.
Also adds an initial list of trigger points. Trigger points are added in such a way that no static initialization triggers them, i.e. just linking with libtorch.so will not cause any logging. Further suggestions of what to log are welcomed.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/20745
Differential Revision: D15429196
Pulled By: dzhulgakov
fbshipit-source-id: a5e41a709a65b7ebccc6b95f93854e583cf20aca
2019-05-23 23:17:59 -07:00
..
2019-03-06 10:48:15 -08:00
2019-05-23 14:04:20 -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
2019-03-06 10:48:15 -08:00
2019-03-19 10:39:20 -07: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
2019-02-14 16:52:57 -08:00
2019-03-31 17:42:27 -07:00
2019-05-17 20:54:42 -07:00
2018-11-16 11:55:59 -08:00
2018-03-27 13:10:18 -07:00
2018-09-25 17:41:05 -07:00
2018-11-29 18:33:22 -08:00
2019-03-06 10:48:15 -08: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
2019-01-09 15:08:20 -08:00
2018-10-01 11:10:46 -07:00
2018-09-25 10:13:43 -07:00
2019-03-06 10:48:15 -08:00
2019-05-23 23:17:59 -07:00
2019-03-06 10:48:15 -08:00
2019-02-12 21:16:34 -08:00
2018-11-28 15:45:37 -08:00
2019-01-31 14:35:56 -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-03-06 10:48:15 -08:00
2018-09-05 16:28:09 -07:00
2018-06-13 13:10:45 -07:00
2019-01-23 19:04:59 -08: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
2018-10-17 12:57:19 -07:00
2018-10-17 12:57:19 -07:00
2019-01-10 09:35:33 -08:00
2019-05-23 23:17:59 -07:00
2019-01-10 09:35:33 -08: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
2019-05-09 09:09:16 -07:00
2018-11-16 12:16:28 -08:00
2018-08-28 11:57:08 -07:00
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07:00
2018-11-14 18:04:09 -08:00
2019-03-08 15:38:41 -08:00
2019-03-08 15:38:41 -08:00
2019-02-20 16:32:24 -08:00
2019-02-20 16:32:23 -08:00
2018-12-10 19:30:58 -08:00
2018-12-10 19:30:58 -08:00
2018-12-10 19:30:58 -08:00
2018-12-10 19:30:58 -08:00
2018-12-10 19:30:58 -08:00
2018-12-10 19:30:58 -08:00
2018-11-08 11:34:34 -08:00
2018-11-16 12:16:28 -08:00
2018-11-08 11:34:34 -08:00
2018-10-08 12:24:52 -07:00
2018-12-21 11:09:27 -08:00
2018-12-21 11:09:27 -08:00
2018-11-26 19:10:43 -08:00
2019-03-08 15:38:41 -08:00
2018-12-10 21:35:04 -08:00
2018-11-26 19:10:43 -08:00
2018-10-31 15:59:16 -07:00
2018-10-31 15:59:16 -07:00
2018-10-17 12:57:19 -07:00
2018-09-27 03:09:54 -07:00
2019-02-22 18:38:31 -08:00
2019-05-23 23:17:59 -07:00
2019-05-14 18:55:19 -07:00
2018-12-12 12:21:10 -08:00
2018-12-12 12:21:10 -08:00
2019-02-14 16:52:57 -08:00
2018-09-25 17:41:05 -07:00
2018-09-27 03:09:54 -07:00
2019-05-15 08:05:59 -07:00
2018-09-05 16:28:09 -07:00
2018-10-22 10:01:02 -07:00
2018-03-27 13:10:18 -07:00
2018-11-16 11:31:05 -08:00
2019-03-22 06:36:25 -07:00
2019-03-08 10:22:41 -08:00
2019-05-23 23:17:59 -07:00
2019-05-23 23:17:59 -07:00
2018-03-27 13:10:18 -07:00
2018-10-26 15:36:59 -07:00
2018-07-11 18:54:45 -07:00
2019-02-22 18:38:31 -08:00
2019-02-22 18:38:31 -08: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
2018-03-27 13:10:18 -07:00
2018-03-27 13:10:18 -07: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
2018-12-11 21:01:40 -08:00
2018-11-14 18:04:09 -08:00
2018-08-28 11:57:08 -07:00
2019-05-20 16:57:11 -07:00
2019-05-20 16:57:11 -07:00
2019-01-14 18:38:38 -08:00
2019-05-06 07:06:04 -07:00
2018-03-27 13:10:18 -07:00
2018-09-25 17:41:05 -07:00
2018-03-27 13:10:18 -07:00
2018-09-27 03:09:54 -07:00
2018-09-27 03:09:54 -07:00
2019-01-17 00:17:56 -08:00
2019-01-18 10:55:21 -08:00
2018-08-23 13:39:55 -07:00
2018-10-04 02:09:56 -07:00
2019-01-23 19:04:59 -08:00