已合并
delete dropout effect #45754
lihui创建于 9月3日
delete dropout effect #45754
已合并
共 1 个文件变更+0-9
| @@ -632,15 +632,6 @@ def _patch_model_24(): | |||
| 632 | patch_remove_ops_from_generate_list(["aten.reshape", "aten.permute"]) | 632 | patch_remove_ops_from_generate_list(["aten.reshape", "aten.permute"]) |
| 633 | except ImportError: | 633 | except ImportError: |
| 634 | log.warning("import config failed for T5ForConditionalGeneration patch") | 634 | log.warning("import config failed for T5ForConditionalGeneration patch") |
| 635 | - from torch._higher_order_ops.effects import ( | ||
| 636 | - _EffectType, | ||
| 637 | - _register_effectful_op, | ||
| 638 | - ) | ||
| 639 | - | ||
| 640 | - _register_effectful_op( | ||
| 641 | - torch.ops.aten.native_dropout.default, | ||
| 642 | - _EffectType.ORDERED, | ||
| 643 | - ) | ||
| 644 | 635 | ||
| 645 | 636 | ||
| 646 | 637 | ||