File tree Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Expand file tree Collapse file tree 2 files changed +6
-13
lines changed Original file line number Diff line number Diff line change 2
2
import torch .nn as nn
3
3
from harness import DispatchTestCase
4
4
from torch .testing ._internal .common_utils import run_tests
5
- from torch_tensorrt .dynamo .conversion .trt_interpreter import (
6
- UnsupportedOperatorException ,
7
- )
5
+ from torch_tensorrt .dynamo .conversion import UnsupportedOperatorException
8
6
9
7
10
8
class TestToCopyConverter (DispatchTestCase ):
Original file line number Diff line number Diff line change 1
- import torch
2
- import timm
3
- import pytest
4
1
import unittest
5
2
3
+ import pytest
4
+ import timm
5
+ import torch
6
6
import torch_tensorrt as torchtrt
7
7
import torchvision .models as models
8
-
8
+ from torch_tensorrt . dynamo . utils import COSINE_THRESHOLD , cosine_similarity
9
9
from transformers import BertModel
10
10
11
- from torch_tensorrt .dynamo .utils import (
12
- COSINE_THRESHOLD ,
13
- cosine_similarity ,
14
- )
15
-
16
11
assertions = unittest .TestCase ()
17
12
18
13
@@ -143,7 +138,7 @@ def test_bert_base_uncased(ir):
143
138
"ir" : ir ,
144
139
"pass_through_build_failures" : True ,
145
140
"optimization_level" : 1 ,
146
- "min_block_size" : 10 ,
141
+ "min_block_size" : 15 ,
147
142
"ir" : "torch_compile" ,
148
143
}
149
144
trt_mod = torchtrt .compile (model , ** compile_spec )
You can’t perform that action at this time.
0 commit comments