Skip to content

Commit

Permalink
fix:shadowVariable
Browse files Browse the repository at this point in the history
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 committed Jul 10, 2024
1 parent 473b0a7 commit 715f875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/tensorrt_common/src/tensorrt_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,12 @@ bool TrtCommon::buildEngineFromOnnx(
auto inner_layer_type = inner_layer->getType();
std::string inner_name = inner_layer->getName();

Check warning on line 433 in common/tensorrt_common/src/tensorrt_common.cpp

View check run for this annotation

Codecov / codecov/patch

common/tensorrt_common/src/tensorrt_common.cpp#L433

Added line #L433 was not covered by tests
if (inner_layer_type == nvinfer1::LayerType::kCONVOLUTION) {
layer->setPrecision(nvinfer1::DataType::kHALF);
inner_layer->setPrecision(nvinfer1::DataType::kHALF);
std::cout << "Set kHALF in " << inner_name << std::endl;
break;
}
if (inner_layer_type == nvinfer1::LayerType::kMATRIX_MULTIPLY) {
layer->setPrecision(nvinfer1::DataType::kHALF);
inner_layer->setPrecision(nvinfer1::DataType::kHALF);
std::cout << "Set kHALF in " << inner_name << std::endl;
break;
}
Expand Down

0 comments on commit 715f875

Please sign in to comment.