@@ -29,9 +29,11 @@ def setUp(self):
29
29
30
30
def test_compile (self ):
31
31
compile_spec = {
32
- "input_signature" : ((torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape ))),
32
+ "input_signature" : ((torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape )), ),
33
33
"device" : torchtrt .Device ("gpu:0" ),
34
- "enabled_precisions" : {torch .float }
34
+ "enabled_precisions" : {torch .float },
35
+ "require_full_compilation" : False ,
36
+ "min_block_size" : 3
35
37
}
36
38
37
39
trt_mod = torchtrt .ts .compile (self .model , ** compile_spec )
@@ -45,9 +47,11 @@ def setUp(self):
45
47
46
48
def test_compile (self ):
47
49
compile_spec = {
48
- "input_signature" : ([torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape )]),
50
+ "input_signature" : ([torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape )], ),
49
51
"device" : torchtrt .Device ("gpu:0" ),
50
- "enabled_precisions" : {torch .float }
52
+ "enabled_precisions" : {torch .float },
53
+ "require_full_compilation" : False ,
54
+ "min_block_size" : 3
51
55
}
52
56
53
57
trt_mod = torchtrt .ts .compile (self .model , ** compile_spec )
@@ -61,9 +65,11 @@ def setUp(self):
61
65
62
66
def test_compile (self ):
63
67
compile_spec = {
64
- "input_signature" : ((torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape ))),
68
+ "input_signature" : ((torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape )), ),
65
69
"device" : torchtrt .Device ("gpu:0" ),
66
- "enabled_precisions" : {torch .float }
70
+ "enabled_precisions" : {torch .float },
71
+ "require_full_compilation" : False ,
72
+ "min_block_size" : 3
67
73
}
68
74
69
75
trt_mod = torchtrt .ts .compile (self .model , ** compile_spec )
@@ -79,9 +85,11 @@ def setUp(self):
79
85
80
86
def test_compile (self ):
81
87
compile_spec = {
82
- "input_signature" : ([torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape )]),
88
+ "input_signature" : ([torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape )], ),
83
89
"device" : torchtrt .Device ("gpu:0" ),
84
- "enabled_precisions" : {torch .float }
90
+ "enabled_precisions" : {torch .float },
91
+ "require_full_compilation" : False ,
92
+ "min_block_size" : 3
85
93
}
86
94
87
95
trt_mod = torchtrt .ts .compile (self .model , ** compile_spec )
@@ -98,9 +106,11 @@ def setUp(self):
98
106
99
107
def test_compile (self ):
100
108
compile_spec = {
101
- "input_signature" : ([torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape )]),
109
+ "input_signature" : ([torchtrt .Input (self .input .shape ), torchtrt .Input (self .input .shape )], ),
102
110
"device" : torchtrt .Device ("gpu:0" ),
103
- "enabled_precisions" : {torch .float }
111
+ "enabled_precisions" : {torch .float },
112
+ "require_full_compilation" : False ,
113
+ "min_block_size" : 3
104
114
}
105
115
106
116
trt_mod = torchtrt .ts .compile (self .model , ** compile_spec )
0 commit comments