We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e53f0c commit f81d5baCopy full SHA for f81d5ba
yolov5/yolov5.cpp
@@ -32,7 +32,7 @@ static int get_depth(int x, float gd) {
32
if (x * gd - int(x * gd) == 0.5 && (int(x * gd) % 2) == 0) {
33
--r;
34
}
35
- return std::max(r, 1);
+ return std::max<int>(r, 1);
36
37
38
ICudaEngine* build_engine(unsigned int maxBatchSize, IBuilder* builder, IBuilderConfig* config, DataType dt, float& gd, float& gw, std::string& wts_name) {
0 commit comments