Skip to content

Commit 7d77c72

Browse files
vivekmigfacebook-github-bot
authored andcommitted
Add ODS Logging to Captum (pytorch#971)
Summary: Pull Request resolved: pytorch#971 Reviewed By: NarineK Differential Revision: D37009629 fbshipit-source-id: 161a957ed56abfb734c9004fc8420e66ccde9d20
1 parent afc4759 commit 7d77c72

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

captum/log/__init__.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,21 @@
22

33
try:
44
from captum.log.fb.internal_log import (
5+
disable_detailed_logging,
56
log,
67
log_usage,
78
patch_methods,
89
set_environment,
910
TimedLog,
1011
)
1112

12-
__all__ = ["log", "log_usage", "TimedLog", "set_environment"]
13+
__all__ = [
14+
"log",
15+
"log_usage",
16+
"TimedLog",
17+
"set_environment",
18+
"disable_detailed_logging",
19+
]
1320

1421
except ImportError:
1522
from functools import wraps
@@ -41,5 +48,8 @@ def wrapper(*args, **kwargs):
4148
def set_environment(env):
4249
pass
4350

51+
def disable_detailed_logging():
52+
pass
53+
4454
def patch_methods(tester, patch_log=True):
4555
pass

0 commit comments

Comments
 (0)