Skip to content

Commit

Permalink
Windows VS2015 Compile error - 'conversion from 'double' to 'float' r…
Browse files Browse the repository at this point in the history
…equires a narrowing conversion' (apache#1329)
  • Loading branch information
rajh619 authored and tqchen committed Jun 24, 2018
1 parent c876126 commit 21beebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnvm/include/nnvm/top/nn.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
};
Expand Down

0 comments on commit 21beebd

Please sign in to comment.