mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-12 20:54:35 +00:00
[fx] support module with bias addition (#1780)
* [autoparallel] refactor tracer to fix bias addition issue * [fx] support module with bias addition * create bias_addition_module * refactor file structure * polish code * fix unit test
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import torch
|
||||
import timm.models as tm
|
||||
from timm_utils import split_model_and_compare_output
|
||||
import pytest
|
||||
import timm.models as tm
|
||||
import torch
|
||||
from timm_utils import split_model_and_compare_output
|
||||
|
||||
|
||||
@pytest.mark.skip('balance split v2 is not ready')
|
||||
def test_timm_models_without_control_flow():
|
||||
|
||||
MODEL_LIST = [
|
||||
@@ -24,6 +25,7 @@ def test_timm_models_without_control_flow():
|
||||
split_model_and_compare_output(model, data)
|
||||
|
||||
|
||||
@pytest.mark.skip('balance split v2 is not ready')
|
||||
def test_timm_models_with_control_flow():
|
||||
torch.backends.cudnn.deterministic = True
|
||||
|
||||
|
Reference in New Issue
Block a user