File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,8 @@ void getSegmentsOutputByRunning(
195
195
jit_inputs_ivalues.push_back (ivalues_maps[input].toBool ());
196
196
} else if (input->type ()->isSubtypeOf (torch::jit::FloatType::get ())) {
197
197
jit_inputs_ivalues.push_back (ivalues_maps[input].toDouble ());
198
+ } else if (input->type ()->isSubtypeOf (torch::jit::StringType::get ())) {
199
+ jit_inputs_ivalues.push_back (ivalues_maps[input].toString ());
198
200
} else if (input->type ()->kind () == torch::jit::TypeKind::ListType) {
199
201
// create list
200
202
jit_inputs_ivalues.push_back (ivalues_maps[input].toList ());
@@ -207,7 +209,7 @@ void getSegmentsOutputByRunning(
207
209
} else if (input->type ()->kind () == torch::jit::TypeKind::DictType) {
208
210
jit_inputs_ivalues.push_back (ivalues_maps[input].toGenericDict ());
209
211
} else if (input->type ()->kind () == torch::jit::TypeKind::DeviceObjType) {
210
- jit_inputs_ivalues.push_back (ivalues_maps[input].toDevice ());
212
+ jit_inputs_ivalues.push_back (ivalues_maps[input].toString ());
211
213
} else {
212
214
TORCHTRT_THROW_ERROR (
213
215
" Expected to find type " << input->type ()->str () << " for value " << input->debugName ()
You can’t perform that action at this time.
0 commit comments