"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "47b334642261926618078c1e4e043cd0ec21fae7"
Commit dc477dd9 authored by Andrew Or's avatar Andrew Or Committed by Facebook GitHub Bot
Browse files

Fix test failures caused by D37088095 (part 2)

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

D37088095 made BC breaking changes in PyTorch, but missed
fixing a few callsites. This is the second diff to fix the affected
tests.

Reviewed By: jerryzh168, wat3rBro

Differential Revision: D37282853

fbshipit-source-id: 945c3628f53cefd2fbc2526630d1567a2b1cee25
parent d1518ff6
...@@ -312,7 +312,7 @@ def default_rcnn_prepare_for_quant_convert(self, cfg): ...@@ -312,7 +312,7 @@ def default_rcnn_prepare_for_quant_convert(self, cfg):
assert not isinstance(self.backbone, FPN), "FPN is not supported in FX mode" assert not isinstance(self.backbone, FPN), "FPN is not supported in FX mode"
self.backbone = convert_fx( self.backbone = convert_fx(
self.backbone, self.backbone,
convert_custom_config_dict={ convert_custom_config={
"preserved_attributes": ["size_divisibility", "padding_constraints"] "preserved_attributes": ["size_divisibility", "padding_constraints"]
}, },
) )
......
...@@ -186,7 +186,7 @@ class TestLightningTask(unittest.TestCase): ...@@ -186,7 +186,7 @@ class TestLightningTask(unittest.TestCase):
def prepare_for_quant_convert(self, cfg): def prepare_for_quant_convert(self, cfg):
self.avgpool = convert_fx( self.avgpool = convert_fx(
self.avgpool, convert_custom_config_dict=self.custom_config_dict self.avgpool, convert_custom_config=self.custom_config_dict
) )
return self return self
......
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