You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(//core/ir): Implementing new internal input spec type
This commit implements the new input spec type trtorch::core::ir::Input,
which incapsulates InputRange and adds the new dtype and tensor format arguments.
It also changes DataType op_precision in the engine settings to
std::set<nvinfer1::DataType> enabled_precisions, allowing the compiler
to set more than a single precision without resorting to catch all rules
such as FP32 and Int8 without FP16.
Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
"Configured DLA Core ID: " << settings.device.dla_core
121
123
<< " not available. Total number of available DLA Cores: " << nbDLACores);
122
-
TRTORCH_CHECK(settings.op_precision != nvinfer1::DataType::kFLOAT, "DLA supports only fp16 or int8 precision");
124
+
TRTORCH_CHECK(settings.enabled_precisions.find(nvinfer1::DataType::kFLOAT) == settings.enabled_precisions.end(), "DLA supports only fp16 or int8 precision");
0 commit comments