Skip to content
Snippets Groups Projects
Commit 5b33e7b8 authored by rajh619's avatar rajh619 Committed by Tianqi Chen
Browse files

Windows VS2015 Compile error - 'conversion from 'double' to 'float' requires a...

Windows VS2015 Compile error - 'conversion from 'double' to 'float' requires a narrowing conversion' (#1329)
parent 5d2ccd66
No related branches found
No related tags found
No related merge requests found
......@@ -349,7 +349,7 @@ struct MultiBoxTransformLocParam : public dmlc::Parameter<MultiBoxTransformLocPa
.describe("Clip out-of-boundary boxes.");
DMLC_DECLARE_FIELD(threshold).set_default(0.01)
.describe("Threshold to be a positive prediction.");
DMLC_DECLARE_FIELD(variances).set_default(Tuple<float>{0.1, 0.1, 0.2, 0.2})
DMLC_DECLARE_FIELD(variances).set_default(Tuple<float>({0.1f, 0.1f, 0.2f, 0.2f}))
.describe("Variances to be decoded from box regression output.");
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment