Skip to content

Commit f81d5ba

Browse files
authored
improperly use about stl at line 35 (wang-xinyu#621)
1 parent 2e53f0c commit f81d5ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yolov5/yolov5.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static int get_depth(int x, float gd) {
3232
if (x * gd - int(x * gd) == 0.5 && (int(x * gd) % 2) == 0) {
3333
--r;
3434
}
35-
return std::max(r, 1);
35+
return std::max<int>(r, 1);
3636
}
3737

3838
ICudaEngine* build_engine(unsigned int maxBatchSize, IBuilder* builder, IBuilderConfig* config, DataType dt, float& gd, float& gw, std::string& wts_name) {

0 commit comments

Comments
 (0)