@@ -198,15 +198,15 @@ Input::Input(c10::IntArrayRef shape, TensorFormat format) {
198
198
this ->tensor_domain = std::vector<int64_t >{0 , 2 };
199
199
}
200
200
201
- Input::Input (c10::IntArrayRef shape, c10::IntArrayRef tensor_domain, TensorFormat format) {
201
+ Input::Input (c10::IntArrayRef shape, std::vector< int64_t > tensor_domain, TensorFormat format) {
202
202
this ->opt_shape = torch_tensorrt::core::util::toVec (shape);
203
203
this ->min_shape = torch_tensorrt::core::util::toVec (shape);
204
204
this ->max_shape = torch_tensorrt::core::util::toVec (shape);
205
205
this ->shape = torch_tensorrt::core::util::toVec (shape);
206
206
this ->dtype = DataType::kUnknown ;
207
207
this ->format = format;
208
208
this ->input_is_dynamic = false ;
209
- this ->tensor_domain = torch_tensorrt::core::util::toVec ( tensor_domain) ;
209
+ this ->tensor_domain = tensor_domain;
210
210
}
211
211
212
212
Input::Input (c10::IntArrayRef shape, DataType dtype, TensorFormat format) {
@@ -220,15 +220,15 @@ Input::Input(c10::IntArrayRef shape, DataType dtype, TensorFormat format) {
220
220
this ->tensor_domain = std::vector<int64_t >{0 , 2 };
221
221
}
222
222
223
- Input::Input (c10::IntArrayRef shape, DataType dtype, c10::IntArrayRef tensor_domain, TensorFormat format) {
223
+ Input::Input (c10::IntArrayRef shape, DataType dtype, std::vector< int64_t > tensor_domain, TensorFormat format) {
224
224
this ->opt_shape = torch_tensorrt::core::util::toVec (shape);
225
225
this ->min_shape = torch_tensorrt::core::util::toVec (shape);
226
226
this ->max_shape = torch_tensorrt::core::util::toVec (shape);
227
227
this ->shape = torch_tensorrt::core::util::toVec (shape);
228
228
this ->dtype = dtype;
229
229
this ->format = format;
230
230
this ->input_is_dynamic = false ;
231
- this ->tensor_domain = torch_tensorrt::core::util::toVec ( tensor_domain) ;
231
+ this ->tensor_domain = tensor_domain;
232
232
}
233
233
234
234
Input::Input (
@@ -315,7 +315,7 @@ Input::Input(
315
315
c10::IntArrayRef min_shape,
316
316
c10::IntArrayRef opt_shape,
317
317
c10::IntArrayRef max_shape,
318
- c10::IntArrayRef tensor_domain,
318
+ std::vector< int64_t > tensor_domain,
319
319
TensorFormat format) {
320
320
this ->opt_shape = torch_tensorrt::core::util::toVec (opt_shape);
321
321
this ->min_shape = torch_tensorrt::core::util::toVec (min_shape);
@@ -325,7 +325,7 @@ Input::Input(
325
325
this ->dtype = DataType::kUnknown ;
326
326
this ->format = format;
327
327
this ->input_is_dynamic = true ;
328
- this ->tensor_domain = torch_tensorrt::core::util::toVec ( tensor_domain) ;
328
+ this ->tensor_domain = tensor_domain;
329
329
}
330
330
331
331
Input::Input (
@@ -350,7 +350,7 @@ Input::Input(
350
350
c10::IntArrayRef opt_shape,
351
351
c10::IntArrayRef max_shape,
352
352
DataType dtype,
353
- c10::IntArrayRef tensor_domain,
353
+ std::vector< int64_t > tensor_domain,
354
354
TensorFormat format) {
355
355
this ->opt_shape = torch_tensorrt::core::util::toVec (opt_shape);
356
356
this ->min_shape = torch_tensorrt::core::util::toVec (min_shape);
@@ -360,7 +360,7 @@ Input::Input(
360
360
this ->dtype = dtype;
361
361
this ->format = format;
362
362
this ->input_is_dynamic = true ;
363
- this ->tensor_domain = torch_tensorrt::core::util::toVec ( tensor_domain) ;
363
+ this ->tensor_domain = tensor_domain;
364
364
}
365
365
366
366
Input::Input (at::Tensor tensor) {
0 commit comments