Skip to content

Commit 8801573

Browse files
authored
Merge pull request #902 from NVIDIA/one_hot
fix(//core): Take user setting in the case we can't determine the
2 parents e38056b + 5d8fb5a commit 8801573

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/compiler.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -344,9 +344,10 @@ void MapInputsAndDetermineDTypes(
344344
ss << "- Disable partial compilation by setting require_full_compilation to True";
345345
auto warn_str = ss.str();
346346
LOG_WARNING(warn_str);
347-
// Overwrite type map with user settings
348-
first_use_type_map[in] = {util::TRTDataTypeToScalarType(cfg.convert_info.inputs.find(in)->second.dtype)};
349347
}
348+
// Overwrite type map with user settings
349+
// We use this map for partitiioning since we need c10::ScalarTypes not nvinfer::DataTypes
350+
first_use_type_map[in] = {util::TRTDataTypeToScalarType(cfg.convert_info.inputs.find(in)->second.dtype)};
350351
}
351352
} else {
352353
// The user defined the type so no changes are necessary

0 commit comments

Comments
 (0)