Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fix precision vars initialization in TRT #20277

Merged
merged 1 commit into from
May 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/operator/subgraph/tensorrt/tensorrt-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ class TensorrtProperty : public SubgraphProperty {
const std::unordered_map<std::string, std::string>& options_map) override {
auto it_precision = options_map.find("precision");
if (it_precision != options_map.end()) {
fp16_mode_ = false;
int8_mode_ = false;
auto precision_string = it_precision->second;
std::replace(precision_string.begin(), precision_string.end(), '_', ' ');
std::istringstream iss(precision_string);
Expand Down