Commit fce2a186 authored by Zhanibek Datbayev's avatar Zhanibek Datbayev Committed by Facebook GitHub Bot
Browse files

add assert for fb_overwritable decorator.

Summary:
X-link: https://github.com/facebookresearch/mobile-vision/pull/108

Pull Request resolved: https://github.com/facebookresearch/d2go/pull/373

Asserting that methods replaced by fb_overwritable are also annotated with corresponding decorator.

Reviewed By: wat3rBro

Differential Revision: D39674347

fbshipit-source-id: a4cf007419760aa07d929ab1cf819ba54b11b9da
parent e93de5d2
...@@ -136,7 +136,6 @@ def get_dir_path(relative_path): ...@@ -136,7 +136,6 @@ def get_dir_path(relative_path):
# copy util function for oss # copy util function for oss
@fb_overwritable()
def alias(x, name, is_backward=False): def alias(x, name, is_backward=False):
if not torch.onnx.is_in_onnx_export(): if not torch.onnx.is_in_onnx_export():
return x return x
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment