Skip to content

Commit 329b692

Browse files
committed
remove set_docstring
1 parent 836b5bf commit 329b692

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

torchvision/prototype/models/_utils.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,3 @@ def _ovewrite_value_param(param: Optional[V], new_value: V) -> V:
106106
if param != new_value:
107107
raise ValueError(f"The parameter '{param}' expected value {new_value} but got {param} instead.")
108108
return new_value
109-
110-
111-
def set_docstring(doc):
112-
# basic decorator that sets the __doc__ attribute of a function
113-
def wrapper(f):
114-
f.__doc__ = doc
115-
return f
116-
117-
return wrapper

0 commit comments

Comments
 (0)