[fx] fixed unit tests for torch 1.12 (#1327)

This commit is contained in:
Frank Lee
2022-07-15 18:22:15 +08:00
committed by GitHub
parent d49708ae43
commit b2475d8c5c
17 changed files with 2 additions and 18 deletions

View File

@@ -7,7 +7,6 @@ BATCH_SIZE = 2
SEQ_LENGHT = 16
@pytest.mark.skip("error with pytorch 1.10")
def test_single_sentence_albert():
MODEL_LIST = [
transformers.AlbertModel,

View File

@@ -7,7 +7,6 @@ BATCH_SIZE = 2
SEQ_LENGHT = 16
@pytest.mark.skip("error with pytorch 1.10")
def test_single_sentence_bert():
MODEL_LIST = [
transformers.BertModel,

View File

@@ -9,7 +9,6 @@ NUM_EPOCHS = 2
NUM_CHUNKS = 1
@pytest.mark.skip("error with pytorch 1.10")
def test_gpt():
MODEL_LIST = [
transformers.GPT2Model,

View File

@@ -7,7 +7,6 @@ BATCH_SIZE = 1
SEQ_LENGHT = 16
@pytest.mark.skip("error with pytorch 1.10")
def test_opt():
MODEL_LIST = [
transformers.OPTModel,

View File

@@ -7,7 +7,6 @@ BATCH_SIZE = 1
SEQ_LENGHT = 16
@pytest.mark.skip("error with pytorch 1.10")
def test_t5():
MODEL_LIST = [
transformers.T5Model,