Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Chen <kevinch@nvidia.com>
  • Loading branch information
kevinch-nv committed Jun 18, 2024
1 parent ed1a45e commit 521fffa
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ bool SetDynamicRange(nvinfer1::INetworkDefinition& network, std::unordered_map<s
break;
#if NV_TENSORRT_MAJOR >= 10
case nvinfer1::DataType::kINT64:
weight = static_cast<const int64_t*>(trt_weights.values)[k];
{
weight = static_cast<double>(static_cast<const int64_t*>(trt_weights.values)[k]);
break;
}
#endif // NV_TENSORRT_MAJOR >= 10
default:
LOGS_DEFAULT(ERROR) << "Found unsupported datatype for layer " << const_layer_name;
Expand Down

0 comments on commit 521fffa

Please sign in to comment.