Commit 5b33e7b8 by rajh619 Committed by Tianqi Chen

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
...@@ -349,7 +349,7 @@ struct MultiBoxTransformLocParam : public dmlc::Parameter<MultiBoxTransformLocPa ...@@ -349,7 +349,7 @@ struct MultiBoxTransformLocParam : public dmlc::Parameter<MultiBoxTransformLocPa
.describe("Clip out-of-boundary boxes."); .describe("Clip out-of-boundary boxes.");
DMLC_DECLARE_FIELD(threshold).set_default(0.01) DMLC_DECLARE_FIELD(threshold).set_default(0.01)
.describe("Threshold to be a positive prediction."); .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."); .describe("Variances to be decoded from box regression output.");
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment