pytorch/caffe2
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
..
contrib Remove Variable::Impl and DifferentiableViewImpl (#17072) 2019-05-23 21:09:04 -07:00
core Lightweight at-most-once logging for API usage (#20745) 2019-05-23 23:17:59 -07:00
cuda_rtc Change ConvPoolOp<Context>::SetOutputSize to ConvPoolOp<Context>::GetOutputSize (#17764) 2019-03-07 18:38:53 -08:00
db Apply modernize-use-override (2nd iteration) 2019-02-14 16:52:57 -08:00
distributed Manual hipify caffe2/distributed and rocm update (no hcc modules support) (#18088) 2019-03-29 11:07:32 -07:00
experiments Tensor construction codemod(ResizeLike) - 1/7 (#15073) 2018-12-19 21:38:48 -08:00
ideep Remove useless input shape checker in conv (#19608) 2019-04-24 11:39:43 -07:00
image Clang-format ImageInputOp (#20441) 2019-05-16 23:00:09 -07:00
mobile update legacy plus one for mpscnn 2019-05-16 18:17:18 -07:00
mpi Tensor construction codemod(ResizeLike) - 3/7 (#15122) 2018-12-14 02:08:37 -08:00
observers Remove GPU dependency from ProfileObserver (#17592) 2019-03-04 10:00:46 -08:00
onnx Export randn_like in ONNX exporter (#20093) 2019-05-06 14:54:46 -07:00
operators Exposing LengthsSum/Mean/Max in pytorch (#20802) 2019-05-22 13:55:19 -07:00
opt Add onnxifi support for Int8FCDNNLowPPackedWeightBlob (#20564) 2019-05-20 16:57:11 -07:00
perfkernels eliminate FE_INVALID exceptions related to fp16 conversion (#20390) 2019-05-13 23:42:01 -07:00
predictor Removing cyclic dependency (#20511) 2019-05-14 18:55:19 -07:00
proto Add support for __getstate__/__setstate__ on module (#20242) 2019-05-17 14:43:14 -07:00
python Lightweight at-most-once logging for API usage (#20745) 2019-05-23 23:17:59 -07:00
quantization Add onnxifi support for Int8FCDNNLowPPackedWeightBlob (#20564) 2019-05-20 16:57:11 -07:00
queue Revert "Tensor construction codemod(raw_mutable_data) (#16373)" (#18680) 2019-04-01 14:39:13 -07:00
serialize Add the support of feature store example in pytorch model in fblearner (#20040) 2019-05-20 12:58:27 -07:00
sgd shape inference for learning rate op (#20020) 2019-05-14 23:34:32 -07:00
share Change ConvPoolOp<Context>::SetOutputSize to ConvPoolOp<Context>::GetOutputSize (#17764) 2019-03-07 18:38:53 -08:00
test
transforms fix -Wsign-compare warnings for some files inside c2 (#18123) 2019-03-19 10:39:20 -07:00
utils Lightweight at-most-once logging for API usage (#20745) 2019-05-23 23:17:59 -07:00
video codemode change missing [from D13586737] 2019-05-13 20:44:04 -07:00
__init__.py
.clang-format
CMakeLists.txt Revert D15248618: Split ATen/Parallel into interface and backend 2019-05-22 09:55:51 -07:00
README.md
release-notes.md
requirements.txt
VERSION_NUMBER

Caffe2

Jenkins Build Status

Caffe2 is a lightweight, modular, and scalable deep learning framework. Building on the original Caffe, Caffe2 is designed with expression, speed, and modularity in mind.

Questions and Feedback

Please use Github issues (https://github.com/pytorch/pytorch/issues) to ask questions, report bugs, and request new features.

Further Resources on Caffe2.ai